This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/13246] RFE: strtold: do not include uninitialized bytes when converting "NaN"
- From: "bugdal at aerifal dot cx" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Thu, 06 Oct 2011 12:39:06 +0000
- Subject: [Bug libc/13246] RFE: strtold: do not include uninitialized bytes when converting "NaN"
- Auto-submitted: auto-generated
- References: <bug-13246-131@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=13246
--- Comment #11 from Rich Felker <bugdal at aerifal dot cx> 2011-10-06 12:39:06 UTC ---
OK, it's the test program and GNU sort that are wrong (reading padding bits).
Unfortunately I don't see a portable way to "compare" NaNs like this. But if
they're being read from strings, why not just compare the string form when the
value is NaN?
--
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.