public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/15380] New: initstate() fails to retun NULL if size < 8
@ 2013-04-19 7:53 mtk.manpages at gmail dot com
2013-04-19 7:55 ` [Bug libc/15380] " mtk.manpages at gmail dot com
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: mtk.manpages at gmail dot com @ 2013-04-19 7:53 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=15380
Bug #: 15380
Summary: initstate() fails to retun NULL if size < 8
Product: glibc
Version: 2.17
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: unassigned@sourceware.org
ReportedBy: mtk.manpages@gmail.com
CC: drepper.fsp@gmail.com
Classification: Unclassified
POSIX.1-2001 says:
RETURN VALUE
If initstate() is called with size less than 8, it shall return
NULL.
glibc sets errno to EINVAL for this case, but does not return NULL, thus
violating the standard.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libc/15380] initstate() fails to retun NULL if size < 8
2013-04-19 7:53 [Bug libc/15380] New: initstate() fails to retun NULL if size < 8 mtk.manpages at gmail dot com
@ 2013-04-19 7:55 ` mtk.manpages at gmail dot com
2013-04-29 19:04 ` aj at suse dot de
2014-06-13 18:24 ` [Bug libc/15380] initstate() fails to return " fweimer at redhat dot com
2 siblings, 0 replies; 4+ messages in thread
From: mtk.manpages at gmail dot com @ 2013-04-19 7:55 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=15380
--- Comment #1 from Michael Kerrisk <mtk.manpages at gmail dot com> 2013-04-19 07:55:40 UTC ---
Created attachment 6990
--> http://sourceware.org/bugzilla/attachment.cgi?id=6990
Test case
Test case to demonstrate the bug
$ ./a.out
0x35b1fb00a0
errno=22
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libc/15380] initstate() fails to retun NULL if size < 8
2013-04-19 7:53 [Bug libc/15380] New: initstate() fails to retun NULL if size < 8 mtk.manpages at gmail dot com
2013-04-19 7:55 ` [Bug libc/15380] " mtk.manpages at gmail dot com
@ 2013-04-29 19:04 ` aj at suse dot de
2014-06-13 18:24 ` [Bug libc/15380] initstate() fails to return " fweimer at redhat dot com
2 siblings, 0 replies; 4+ messages in thread
From: aj at suse dot de @ 2013-04-29 19:04 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=15380
Andreas Jaeger <aj at suse dot de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |aj at suse dot de
Resolution| |FIXED
AssignedTo|unassigned at sourceware |aj at suse dot de
|dot org |
Target Milestone|--- |2.18
--- Comment #2 from Andreas Jaeger <aj at suse dot de> 2013-04-29 19:04:38 UTC ---
Thanks, fixed for glibc 2.18 now.
commit 9ce3b2cbd245abedc6cff147a1b91566e340edb1
Author: Andreas Jaeger <aj@suse.de>
Date: Mon Apr 29 21:02:16 2013 +0200
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libc/15380] initstate() fails to return NULL if size < 8
2013-04-19 7:53 [Bug libc/15380] New: initstate() fails to retun NULL if size < 8 mtk.manpages at gmail dot com
2013-04-19 7:55 ` [Bug libc/15380] " mtk.manpages at gmail dot com
2013-04-29 19:04 ` aj at suse dot de
@ 2014-06-13 18:24 ` fweimer at redhat dot com
2 siblings, 0 replies; 4+ messages in thread
From: fweimer at redhat dot com @ 2014-06-13 18:24 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=15380
Florian Weimer <fweimer at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|initstate() fails to retun |initstate() fails to return
|NULL if size < 8 |NULL if size < 8
Flags| |security-
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-06-13 18:24 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-19 7:53 [Bug libc/15380] New: initstate() fails to retun NULL if size < 8 mtk.manpages at gmail dot com
2013-04-19 7:55 ` [Bug libc/15380] " mtk.manpages at gmail dot com
2013-04-29 19:04 ` aj at suse dot de
2014-06-13 18:24 ` [Bug libc/15380] initstate() fails to return " fweimer at redhat dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).