This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/5605] New: dirfd() SEGVs when passed NULL
- From: "steve at fisharerojo dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 13 Jan 2008 15:20:53 -0000
- Subject: [Bug libc/5605] New: dirfd() SEGVs when passed NULL
- Reply-to: sourceware-bugzilla at sourceware dot org
The following example program SEGVs in dirfd() in libc. Based on the manpage, it should be returning
-1.
#include <sys/types.h>
#include <dirent.h>
#include <stdlib.h>
int
main() {
int fd = dirfd(NULL);
}
--
Summary: dirfd() SEGVs when passed NULL
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: drepper at redhat dot com
ReportedBy: steve at fisharerojo dot org
CC: glibc-bugs at sources dot redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=5605
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.