[Bug middle-end/77671] missing -Wformat-length warning on sprintf overflow with "%s"
msebor at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Sep 21 01:52:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77671
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |diagnostic
Summary|missing -Wformat-length |missing -Wformat-length
|warning on overflow %s |warning on sprintf overflow
| |with "%s"
--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
As the test case in comment #0 shows, GCC issues a -Wformat-length warning for
the call in function f but fails to do the same thing for the equivalent call
in function g.
More information about the Gcc-bugs
mailing list