https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78106

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Author: marxin
Date: Tue Oct 25 14:16:10 2016
New Revision: 241511

URL: https://gcc.gnu.org/viewcvs?rev=241511&root=gcc&view=rev
Log:
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.

Added:
    trunk/gcc/testsuite/gcc.dg/asan/pr78106.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/sanopt.c
    trunk/gcc/testsuite/ChangeLog

Reply via email to