dcerpc_rts_cmd_ChannelLifetime ?

Volker Lendecke Volker.Lendecke at SerNet.DE
Wed Dec 8 10:14:36 MST 2010


Hi, Julien!

With latest master I am getting the following warning:

librpc/gen_ndr/ndr_dcerpc.c: In function 'ndr_pull_dcerpc_rts_cmd_ChannelLifetime':
librpc/gen_ndr/ndr_dcerpc.c:1748: warning: integer constant is too large for 'long' type
librpc/gen_ndr/ndr_dcerpc.c:1748: warning: comparison is always false due to limited range of data type

When looking at dcerpc.idl I see

/* RTS command: 0x4 */
typedef [public] struct {
        [range(0x20000,0x800000000)] uint32 ChannelLifetime;
} dcerpc_rts_cmd_ChannelLifetime;

Counting 0's in the 0x800... I indeed find that this might
be some too many. The alternative bug is that the uint32 is
supposed to be a hyper.

Regards,

Volker


More information about the samba-technical mailing list