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


>>>>> 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

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