]> git.ipfire.org Git - thirdparty/gcc.git/commit
asan: fix unsafe optimization of Asan checks.
authorYuri Gribov <y.gribov@samsung.com>
Sun, 14 Aug 2022 05:42:44 +0000 (08:42 +0300)
committerMartin Liska <mliska@suse.cz>
Mon, 28 Nov 2022 09:49:30 +0000 (10:49 +0100)
commit5dd4d2e93e3de60d4ef1068b6dfd06b6b9fff16e
treebd316f1d01e742dda514e1650a38de4f33fd6ef2
parentee629d242d9f93a38e49bed904bb334bbe15dde1
asan: fix unsafe optimization of Asan checks.

PR sanitizer/106558

gcc/
* sanopt.cc: Do not optimize out checks for non-SSA addresses.

gcc/testsuite/
* c-c++-common/asan/pr106558.c: New test.
gcc/sanopt.cc
gcc/testsuite/c-c++-common/asan/pr106558.c [new file with mode: 0644]