PR sanitizer/78832
commit221355844e4c99dbf18e345797beab8331334242
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 17 Dec 2016 19:10:39 +0000 (17 19:10 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 17 Dec 2016 19:10:39 +0000 (17 19:10 +0000)
tree407a3a12d4ecccfc9625b2c66a274b6e86f30f6a
parenta246a22d68093b91110dcd1081e0168f36635faf
PR sanitizer/78832
* sanopt.c (sanitize_asan_mark_unpoison): Remove next variable, use
continue if gsi_next should be skipped.
(sanitize_asan_mark_poison): Remove prev variable, use continue if
gsi_prev should be skipped.  When removing ASAN_MARK, do gsi_prev
first and gsi_remove on a previously made copy of the iterator.

* gcc.dg/asan/pr78832.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@243777 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/sanopt.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/asan/pr78832.c [new file with mode: 0644]