Calling strcmp/strncmp/strcasecmp/strncasecmp with NULL parameter
Steven Keuchel
steven.keuchel@freenet.de
Tue Aug 17 21:10:00 GMT 2004
Hi there,
in the not so unlikely event, that one of the string compare functions is
called with NULL as one parameter the process will get a SIGSEGV, because the
functions are dereferencing NULL pointers (i'm referring to the funcs found
in sysdeps/generic). I doubt this is intended behaviour, IMHO these function
should not fail, no matter what the input is.
What does the C Standard say about this ?
Best regards,
Steven Keuchel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 481 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20040817/a192d2d6/attachment.sig>
More information about the Libc-alpha
mailing list