[Bug middle-end/49905] Better sanity checking on sprintf src & dest to produce warning for dodgy code ?

dcb314 at hotmail dot com gcc-bugzilla@gcc.gnu.org
Wed Sep 21 19:52:00 GMT 2016


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

David Binderman <dcb314 at hotmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |---

--- Comment #20 from David Binderman <dcb314 at hotmail dot com> ---
(In reply to Martin Sebor from comment #19)
> Enhancement committed in r240298.

The current code seems to crash when given %lf specifier.

It might be better if it just ignored specifiers it doesn't know,
rather than crash. There are many (> 70) specifiers.


More information about the Gcc-bugs mailing list