commit | a25982ada523689c8745d7fb4b1b93c8f5dab2e7 | [log] [tgz] |
---|---|---|
author | H.J. Lu <hjl.tools@gmail.com> | Thu Jul 14 08:23:38 2022 -0700 |
committer | H.J. Lu <hjl.tools@gmail.com> | Tue Sep 27 18:29:20 2022 -0700 |
tree | 574019090f42888a84404da6ca7b37fa4c6da68d | |
parent | 28390443ff72039ee8215fef2560fe76690af155 [diff] |
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.