This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/9847] segfault on null pointer in fstat()
- From: "socketpair at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 15 Feb 2009 15:49:56 -0000
- Subject: [Bug libc/9847] segfault on null pointer in fstat()
- References: <20090215145230.9847.socketpair@gmail.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From socketpair at gmail dot com 2009-02-15 15:49 -------
(In reply to comment #2)
> A null pointer is not a valid argument.
I think fstat should return -1 and set errno to EFAULT or EINVAL or something else.
The bug definitely in glibc. glibc should check such errors. In other functions
it does.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|INVALID |
http://sourceware.org/bugzilla/show_bug.cgi?id=9847
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.