On 8/17/22 16:18, H.J. Lu via Gcc-patches wrote:
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.

OK.

Jeff

Reply via email to