This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/21186] sem_getvalue() and sem_destroy() don't indicate EINVAL when given an uninitialised semaphore
- From: "fweimer at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Mon, 20 Feb 2017 11:33:07 +0000
- Subject: [Bug libc/21186] sem_getvalue() and sem_destroy() don't indicate EINVAL when given an uninitialised semaphore
- Auto-submitted: auto-generated
- References: <bug-21186-131@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=21186
Florian Weimer <fweimer at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |fweimer at redhat dot com
Resolution|--- |INVALID
Flags| |security-
--- Comment #1 from Florian Weimer <fweimer at redhat dot com> ---
The manual page simply lists EINVAL as an error code. That does not mean that
all invalid uses will result in that error code. In general, such a thing is
impossible to implement. All easy checks we could add to the code would be
invalid according to C semantics anyway.
--
You are receiving this mail because:
You are on the CC list for the bug.