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/5950] strtold_l() segfaults on various distribution of linux


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


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