public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/64315] New: num_put misbehaves if the C library doesn't support floats
@ 2014-12-15 13:45 ville.voutilainen at gmail dot com
  2014-12-15 13:47 ` [Bug libstdc++/64315] " redi at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: ville.voutilainen at gmail dot com @ 2014-12-15 13:45 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64315

            Bug ID: 64315
           Summary: num_put misbehaves if the C library doesn't support
                    floats
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ville.voutilainen at gmail dot com

In num_put::_M_insert_float, __convert_from_v can fail, leading into a __widen
being called with a negative size. This may happen with a C library that has a
sprintf that refuses to support floats and returns -1 when a float is used with
it.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug libstdc++/64315] num_put misbehaves if the C library doesn't support floats
  2014-12-15 13:45 [Bug libstdc++/64315] New: num_put misbehaves if the C library doesn't support floats ville.voutilainen at gmail dot com
@ 2014-12-15 13:47 ` redi at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: redi at gcc dot gnu.org @ 2014-12-15 13:47 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64315

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2014-12-15
     Ever confirmed|0                           |1

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
If we can handle this without penalising the common case it would be nice to
fail politely, rather than crash in flames.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-12-15 13:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-15 13:45 [Bug libstdc++/64315] New: num_put misbehaves if the C library doesn't support floats ville.voutilainen at gmail dot com
2014-12-15 13:47 ` [Bug libstdc++/64315] " redi at gcc dot gnu.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).