[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#222891: libc6: strdup (NULL) segfaults



Package: libc6
Version: 2.3.2.ds1-10
Severity: normal

Calling strdup (NULL) causes a segmentation fault in libc:

  Starting program: /tmp/test

  Program received signal SIGSEGV, Segmentation fault.
  0x40098a8f in strlen () from /lib/libc.so.6

The documentation doesn't say the string can't be NULL. When that happens,
I'd expect it to not segfault and return NULL either.

-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux aragorn 2.4.18-1-k7 #3 Sat Nov 29 10:23:13 EST 2003 i686
Locale: LANG=ca_ES@euro, LC_CTYPE=ca_ES@euro

Versions of packages libc6 depends on:
ii  libdb1-compat                 2.1.3-7    The Berkeley database routines [gl

-- no debconf information




Reply to: