Fix not caught use-after-scope with -O1 (PR sanitize/78106)
authorMartin Liska <mliska@suse.cz>
Tue, 25 Oct 2016 14:16:10 +0000 (16:16 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Tue, 25 Oct 2016 14:16:10 +0000 (14:16 +0000)
commit8e104951788de1a591287637d2b29fa37d8822ea
tree18fc8d8acdae6c8a7b6ba799f256667fab11c24b
parentb93ee1bb06d43c0547b4de6f1389deafa28a474c
Fix not caught use-after-scope with -O1 (PR sanitize/78106)

PR sanitizer/78106
* sanopt.c (imm_dom_path_with_freeing_call): Handle gasm
statements as they can also contain possibly a freeing call.
PR sanitizer/78106
* gcc.dg/asan/pr78106.c: New test.

From-SVN: r241511
gcc/ChangeLog
gcc/sanopt.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/asan/pr78106.c [new file with mode: 0644]