interesting fact about StrCaseCmp

jra at jra at
Tue Feb 18 04:13:36 GMT 2003

On Tue, Feb 18, 2003 at 11:01:53AM +1100, Martin Pool wrote:
> StrCaseCmp (and strequal) in HEAD has the interesting side-effect that it only
> compares the first PSTRING_LEN (1024) bytes of the strings.
> I suppose comparing strings longer than that is probably a bit
> unlikely, but it still seems kind of dangerous.
> Would it be OK to change it to use dynamic allocation?

What exactly do you want to do here ? I'm not clear what
you mean ?


More information about the samba-technical mailing list