Why are all UNISTR2s at least MAX_BUFFERLEN long?
Andrew Bartlett
abartlet at pcug.org.au
Sat Apr 13 06:05:01 GMT 2002
Andrew Bartlett wrote:
>
> I'm trying to figure out the logic behind this patch:
>
> http://cvs.samba.org/cgi-bin/cvsweb/samba/source/rpc_parse/parse_misc.c.diff?r1=1.60&r2=1.61&f=h
>
> and the mimimum size of all UNISTR2 structures it imposes?
>
> Was this a simply typo (it looks like one) or is it becouse some areas
> of the code (used to?) assume static buffers that were a particular
> length?
At the very least the buffers need to be (len + 1), which a simple
reversal would not give - but that still doesn't answer my question...
Andrew Bartlett
--
Andrew Bartlett abartlet at pcug.org.au
Manager, Authentication Subsystems, Samba Team abartlet at samba.org
Student Network Administrator, Hawker College abartlet at hawkerc.net
http://samba.org http://build.samba.org http://hawkerc.net
More information about the samba-technical
mailing list