[Bug middle-end/100325] missing warning with -O0 on sprintf overflow with pointer plus offset

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed May 5 17:08:55 GMT 2021


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

--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Martin Sebor <msebor@gcc.gnu.org>:

https://gcc.gnu.org/g:2254b3233b5bfa690e8c6e6fa923e4626a6a93d3

commit r12-523-g2254b3233b5bfa690e8c6e6fa923e4626a6a93d3
Author: Martin Sebor <msebor@redhat.com>
Date:   Wed May 5 11:07:39 2021 -0600

    PR middle-end/100325 - missing warning with -O0 on sprintf overflow with
pointer plus offset

    gcc/ChangeLog:

            * passes.def (pass_warn_printf): Run after SSA.

    gcc/testsuite/ChangeLog:

            * gcc.dg/tree-ssa/builtin-sprintf-warn-26.c: New test.


More information about the Gcc-bugs mailing list