This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/11571] getlogin_r (NULL, 0) segfaults
- From: "rjones at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 5 May 2010 16:03:29 -0000
- Subject: [Bug libc/11571] getlogin_r (NULL, 0) segfaults
- References: <20100505160124.11571.rjones@redhat.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From rjones at redhat dot com 2010-05-05 16:03 -------
Note the problem is the zero length, not the
NULL pointer. For example this also segfaults:
#include <unistd.h>
main ()
{
char buffer[10000];
getlogin_r (buffer, 0);
}
--
http://sourceware.org/bugzilla/show_bug.cgi?id=11571
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.