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

--- Comment #13 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by H.J. Lu <h...@gcc.gnu.org>:

https://gcc.gnu.org/g:a25982ada523689c8745d7fb4b1b93c8f5dab2e7

commit r13-2909-ga25982ada523689c8745d7fb4b1b93c8f5dab2e7
Author: H.J. Lu <hjl.to...@gmail.com>
Date:   Thu Jul 14 08:23:38 2022 -0700

    stack-protector: Check stack canary before throwing exception

    Check stack canary before throwing exception to avoid stack corruption.

    gcc/

            PR middle-end/58245
            * calls.cc: Include "tree-eh.h".
            (expand_call): Check stack canary before throwing exception.

    gcc/testsuite/

            PR middle-end/58245
            * g++.dg/fstack-protector-strong.C: Adjusted.
            * g++.dg/pr58245-1.C: New test.

Reply via email to