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, Sep 07, 2000 at 03:18:39PM +0530, rashutos@in.ibm.com wrote:
> Hello,
> 
> the strlen() function has a bug ... If you pass a NULL string to strlen(),
> the program crashes ... for NULL pointer dereference (SIGSEGV)

I very much doubt that this is a bug. Without checking the
standard, I'm pretty sure that the behavior of strlen() is
undefined when you pass it a NULL pointer.

Ronald


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