public inbox for glibc-bugs@sourceware.org help / color / mirror / Atom feed
From: "bugdal at aerifal dot cx" <sourceware-bugzilla@sourceware.org> To: glibc-bugs@sourceware.org Subject: [Bug stdio/15917] scanf %f doesn't parse "0e+0" correctly Date: Sun, 01 Sep 2013 03:42:00 -0000 [thread overview] Message-ID: <bug-15917-131-8RYvrTlNeL@http.sourceware.org/bugzilla/> (raw) In-Reply-To: <bug-15917-131@http.sourceware.org/bugzilla/> https://sourceware.org/bugzilla/show_bug.cgi?id=15917 Rich Felker <bugdal at aerifal dot cx> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bugdal at aerifal dot cx --- Comment #2 from Rich Felker <bugdal at aerifal dot cx> --- I'm confused why this issue even happened, since parsing of hex floats should be completely separate from parsing of decimal floats (the allowed forms are sufficiently different, not to mention the computations to compute the values to store). I guess the leading 0 is already eaten before it's determined that the input is not hex. Anyway, 0xe+0 is not nonsense, but parsing of course should stop just before the plus sign. Also, it should be noted that 0x.e+0 is invalid for scanf but valid for strtod (here, strtod only reads the first character). -- You are receiving this mail because: You are on the CC list for the bug.
next prev parent reply other threads:[~2013-09-01 3:42 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2013-08-31 23:22 [Bug stdio/15917] New: " ats-sourceware at offog dot org 2013-08-31 23:26 ` [Bug stdio/15917] " ats-sourceware at offog dot org 2013-09-01 3:42 ` bugdal at aerifal dot cx [this message] 2013-10-29 13:32 ` schwab@linux-m68k.org 2013-10-30 1:48 ` bugdal at aerifal dot cx 2013-10-30 13:58 ` erik at ixsop dot nl 2013-10-31 11:59 ` schwab@linux-m68k.org 2013-10-31 12:00 ` ats at offog dot org 2014-06-13 12:58 ` fweimer at redhat dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-15917-131-8RYvrTlNeL@http.sourceware.org/bugzilla/ \ --to=sourceware-bugzilla@sourceware.org \ --cc=glibc-bugs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).