This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/1963] argument p not checked in io/fts.c:fts_load()
- From: "jakub at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 2 Dec 2005 08:35:38 -0000
- Subject: [Bug libc/1963] argument p not checked in io/fts.c:fts_load()
- References: <20051201163208.1963.heiko.nardmann@secunet.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From jakub at redhat dot com 2005-12-02 08:35 -------
Please stop reopening this bug. Checking all arguments of all functions
for invalid values would be extremely time consuming and no standard really
requires it. If you supply invalid arguments, you get undefined behaviour,
sometimes (especially if the function is implemented just as a syscall)
you can get -1/EFAULT or something similar, but the standards don't guarantee
it and you can't rely on it.
Only if the standard covering the function says that say NULL or some
other special value is allowed for an argument, then it needs to be handled,
according to the standard.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |INVALID
http://sourceware.org/bugzilla/show_bug.cgi?id=1963
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.