This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/5950] strtold_l() segfaults on various distribution of linux
- From: "jakub at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 17 Mar 2008 16:52:17 -0000
- Subject: [Bug libc/5950] strtold_l() segfaults on various distribution of linux
- References: <20080317163230.5950.boringuy@gmail.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From jakub at redhat dot com 2008-03-17 16:52 -------
Why is it surprising? NULL is definitely not a valid locale_t object,
and calling strtold_l with invalid locale_t object causes undefined behavior.
The upcoming POSIX standard doesn't cover strtold_l, that is just a GNU
extension, but covers e.g. nl_langinfo_l, for which EINVAL when locale_t
object passed to it is invalid is a may fail type of error, so not detecting
and crashing is fine.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |INVALID
http://sourceware.org/bugzilla/show_bug.cgi?id=5950
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.