From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3468 invoked by alias); 15 Dec 2014 13:45:07 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 3450 invoked by uid 48); 15 Dec 2014 13:45:04 -0000 From: "ville.voutilainen at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/64315] New: num_put misbehaves if the C library doesn't support floats Date: Mon, 15 Dec 2014 13:45:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: ville.voutilainen at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-12/txt/msg01741.txt.bz2 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.