This is the mail archive of the glibc-linux@ricardo.ecn.wfu.edu mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: bug in strlen


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]