public inbox for glibc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug libc/3855] New: strtod("0x.") consumes too many characters @ 2007-01-11 2:25 jsm28 at gcc dot gnu dot org 2007-01-11 13:59 ` [Bug libc/3855] " jakub at redhat dot com ` (3 more replies) 0 siblings, 4 replies; 5+ messages in thread From: jsm28 at gcc dot gnu dot org @ 2007-01-11 2:25 UTC (permalink / raw) To: glibc-bugs As an argument to strtod, "0x." has "0" as the longest valid numeric prefix. strtod (current CVS) wrongly treats the whole string as valid. Testcase: #include <stdlib.h> int main(void) { const char *s = "0x."; char *ep; double r = strtod(s, &ep); if (r != 0) abort(); if (ep != s + 1) abort(); exit(0); } -- Summary: strtod("0x.") consumes too many characters Product: glibc Version: unspecified Status: NEW Severity: normal Priority: P2 Component: libc AssignedTo: drepper at redhat dot com ReportedBy: jsm28 at gcc dot gnu dot org CC: glibc-bugs at sources dot redhat dot com http://sourceware.org/bugzilla/show_bug.cgi?id=3855 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libc/3855] strtod("0x.") consumes too many characters 2007-01-11 2:25 [Bug libc/3855] New: strtod("0x.") consumes too many characters jsm28 at gcc dot gnu dot org @ 2007-01-11 13:59 ` jakub at redhat dot com 2007-01-11 16:58 ` jakub at redhat dot com ` (2 subsequent siblings) 3 siblings, 0 replies; 5+ messages in thread From: jakub at redhat dot com @ 2007-01-11 13:59 UTC (permalink / raw) To: glibc-bugs -- What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED http://sourceware.org/bugzilla/show_bug.cgi?id=3855 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libc/3855] strtod("0x.") consumes too many characters 2007-01-11 2:25 [Bug libc/3855] New: strtod("0x.") consumes too many characters jsm28 at gcc dot gnu dot org 2007-01-11 13:59 ` [Bug libc/3855] " jakub at redhat dot com @ 2007-01-11 16:58 ` jakub at redhat dot com 2007-01-11 17:38 ` drepper at redhat dot com 2007-01-12 18:23 ` cvs-commit at gcc dot gnu dot org 3 siblings, 0 replies; 5+ messages in thread From: jakub at redhat dot com @ 2007-01-11 16:58 UTC (permalink / raw) To: glibc-bugs ------- Additional Comments From jakub at redhat dot com 2007-01-11 16:58 ------- http://sources.redhat.com/ml/libc-hacker/2007-01/msg00004.html -- http://sourceware.org/bugzilla/show_bug.cgi?id=3855 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libc/3855] strtod("0x.") consumes too many characters 2007-01-11 2:25 [Bug libc/3855] New: strtod("0x.") consumes too many characters jsm28 at gcc dot gnu dot org 2007-01-11 13:59 ` [Bug libc/3855] " jakub at redhat dot com 2007-01-11 16:58 ` jakub at redhat dot com @ 2007-01-11 17:38 ` drepper at redhat dot com 2007-01-12 18:23 ` cvs-commit at gcc dot gnu dot org 3 siblings, 0 replies; 5+ messages in thread From: drepper at redhat dot com @ 2007-01-11 17:38 UTC (permalink / raw) To: glibc-bugs ------- Additional Comments From drepper at redhat dot com 2007-01-11 17:38 ------- Fix in upstream cvs. -- What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED http://sourceware.org/bugzilla/show_bug.cgi?id=3855 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libc/3855] strtod("0x.") consumes too many characters 2007-01-11 2:25 [Bug libc/3855] New: strtod("0x.") consumes too many characters jsm28 at gcc dot gnu dot org ` (2 preceding siblings ...) 2007-01-11 17:38 ` drepper at redhat dot com @ 2007-01-12 18:23 ` cvs-commit at gcc dot gnu dot org 3 siblings, 0 replies; 5+ messages in thread From: cvs-commit at gcc dot gnu dot org @ 2007-01-12 18:23 UTC (permalink / raw) To: glibc-bugs ------- Additional Comments From cvs-commit at gcc dot gnu dot org 2007-01-12 18:23 ------- Subject: Bug 3855 CVSROOT: /cvs/glibc Module name: libc Branch: glibc-2_5-branch Changes by: jakub@sourceware.org 2007-01-12 18:23:27 Modified files: . : ChangeLog stdlib : Makefile strtod_l.c tst-strtod2.c Added files: stdlib : tst-strtod4.c Log message: * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix handling of multi-byte thousands separators. * stdlib/Makefile: Add rules to build and run tst-strtod4. * stdlib/tst-strtod4.c: New test. [BZ #3855] * stdlib/strtod_l.c (____STRTOF_INTERNAL): 0x. not followed by hexadecimal digit should accept just the initial 0. * stdlib/tst-strtod2.c (tests): New variable. (do_test): Run several tests rather than just one. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/libc/ChangeLog.diff?cvsroot=glibc&only_with_tag=glibc-2_5-branch&r1=1.10362.2.29&r2=1.10362.2.30 http://sourceware.org/cgi-bin/cvsweb.cgi/libc/stdlib/tst-strtod4.c.diff?cvsroot=glibc&only_with_tag=glibc-2_5-branch&r1=NONE&r2=1.1.2.1 http://sourceware.org/cgi-bin/cvsweb.cgi/libc/stdlib/Makefile.diff?cvsroot=glibc&only_with_tag=glibc-2_5-branch&r1=1.109.2.3&r2=1.109.2.4 http://sourceware.org/cgi-bin/cvsweb.cgi/libc/stdlib/strtod_l.c.diff?cvsroot=glibc&only_with_tag=glibc-2_5-branch&r1=1.14.2.1&r2=1.14.2.2 http://sourceware.org/cgi-bin/cvsweb.cgi/libc/stdlib/tst-strtod2.c.diff?cvsroot=glibc&only_with_tag=glibc-2_5-branch&r1=1.3.2.1&r2=1.3.2.2 -- http://sourceware.org/bugzilla/show_bug.cgi?id=3855 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-01-12 18:23 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2007-01-11 2:25 [Bug libc/3855] New: strtod("0x.") consumes too many characters jsm28 at gcc dot gnu dot org 2007-01-11 13:59 ` [Bug libc/3855] " jakub at redhat dot com 2007-01-11 16:58 ` jakub at redhat dot com 2007-01-11 17:38 ` drepper at redhat dot com 2007-01-12 18:23 ` cvs-commit at gcc dot gnu dot org
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).