This is the mail archive of the
glibc-linux@ricardo.ecn.wfu.edu
mailing list for the glibc project.
Re: bug in strlen
- To: glibc-linux at ricardo dot ecn dot wfu dot edu
- Subject: Re: bug in strlen
- From: Allin Cottrell <cottrell at wfu dot edu>
- Date: Thu, 7 Sep 2000 08:27:24 -0400 (EDT)
- Reply-To: glibc-linux at ricardo dot ecn dot wfu dot edu
On Thu, 7 Sep 2000 rashutos@in.ibm.com wrote:
> the strlen() function has a bug ... If you pass a NULL
> string to strlen(), the program crashes ... for NULL pointer
> dereference (SIGSEGV)
The C programmer is supposed to ensure that null pointers are
not dereferenced.
--
Allin Cottrell
Department of Economics
Wake Forest University, NC