public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: kenta@mit.edu To: gcc-gnats@gcc.gnu.org Subject: libstdc++/6268: _M_extract_buffer_length = 32 for double do_get Date: Thu, 11 Apr 2002 20:26:00 -0000 [thread overview] Message-ID: <20020412032459.18385.qmail@sources.redhat.com> (raw) >Number: 6268 >Category: libstdc++ >Synopsis: _M_extract_buffer_length = 32 for double do_get >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Thu Apr 11 20:26:00 PDT 2002 >Closed-Date: >Last-Modified: >Originator: kenta@mit.edu >Release: 3.0.4 >Organization: >Environment: i386 Linux (and others probably) >Description: In the "double" overloaded version of do_get() (buried inside i686-pc-linux-gnu/libstdc++-v3/include/bits/locale_facets.tcc), the comment makes reference to "the size of 256" (line 595 for 3.0.3), but the array __xtrc is declared to be of length 32 (i.e., _M_extract_buffer_length). This is probably a bug. As far as I can tell, this is what causes failure for this simple code "double x; cin >> x" and I input 0.12345678901234567890123456789012345678901234567890 Anything more than 30 digits past the decimal point breaks. I want it to gracefully round or truncate. >How-To-Repeat: >Fix: Don't ever input more than 30 digits past the decimal point. >Release-Note: >Audit-Trail: >Unformatted:
next reply other threads:[~2002-04-12 3:26 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2002-04-11 20:26 kenta [this message] 2002-04-11 23:40 bkoz 2002-04-15 16:48 bkoz
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=20020412032459.18385.qmail@sources.redhat.com \ --to=kenta@mit.edu \ --cc=gcc-gnats@gcc.gnu.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).