This is the mail archive of the
glibc-linux@ricardo.ecn.wfu.edu
mailing list for the glibc project.
Re: bug in strlen
- To: rashutos at in dot ibm dot com
- Subject: Re: bug in strlen
- From: Andreas Jaeger <aj at suse dot de>
- Date: 07 Sep 2000 14:20:34 +0200
- Cc: glibc-linux at ricardo dot ecn dot wfu dot edu
- References: <CA256953.00373716.00@d73mta05.au.ibm.com>
- Reply-To: glibc-linux at ricardo dot ecn dot wfu dot edu
>>>>> rashutos writes:
> Hello,
> the strlen() function has a bug ... If you pass a NULL string to strlen(),
> the program crashes ... for NULL pointer dereference (SIGSEGV)
That's not a bug - you're not allowed to pass a NULL pointer, a NULL
pointer is not a valid string.
Andreas
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de
http://www.suse.de/~aj