ACB_ values exceed 16 bits, yet some working variables explicitly declared as uint16

Guenther Deschner gd at samba.org
Wed Feb 22 09:53:09 GMT 2006


Hi Andrew,

On Wed, Feb 22, 2006 at 08:31:06PM +1100, Andrew Bartlett wrote:
> On Wed, 2006-02-22 at 10:06 +0100, Guenther Deschner wrote:
> > Hi Luke,
> > 
> > On Wed, Feb 22, 2006 at 10:59:35AM +1100, Luke Howard wrote:
> > > 
> > > >> But those defined values can exceed 16 bits, for example:
> > > >> include/smb.h:#define ACB_DONT_REQUIRE_PREAUTH 0x00010000  /* 1 =
> > > >> Preauth not required */
> > > >> 
> > > >   That's odd, I would have expected valgrind to
> > > >catch something like that, not just the Sun compilers...
> > > 
> > > Can't this only to be caught a compile-time, though?
> > > 
> > > BTW, where did the new ACB_ bits come from? 
> > 
> > There were identified by looking at the acct_flags in the Kerberos PAC
> > info3.
> 
> Are they included in our mapping functions now?

I'm not sure, I send you a patch a longer while ago to the new bits at
least to the idl files but that never got added IIRC.

Cheers,
Guenther

-- 
Günther Deschner                    GPG-ID: 8EE11688
Novell / SUSE LINUX                       gd at suse.de
Samba Team                              gd at samba.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20060222/413e816d/attachment.bin


More information about the samba-technical mailing list