https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80807
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |DUPLICATE
--- Comment #2 from Martin Sebor <msebor at gcc dot gnu.org> ---
Overflow in calls to formatted functions with a format string containing
directives other than "%s" is not detected at compile time in GCC versions
prior to 7. In GCC 7 the overflow is diagnosed even without _FORTIFY_SOURCE or
optimization.
I don't expect it to be feasible to backport the GCC 7 work to prior versions
so I'm going to resolve this request as a duplicate of the already implemented
enhancement request pr49905.
*** This bug has been marked as a duplicate of bug 49905 ***