This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/1963] argument p not checked in io/fts.c:fts_load()


------- 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]