[Bug c/81524] Bogus or missing warnings when dereferencing pointer to deallocated stack memory

marxin at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Jul 24 12:39:00 GMT 2017


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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-07-24
                 CC|                            |marxin at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Yes, I can confirm that GCC 7 can detect all 6 situations with:

gcc pr81524.c  -fsanitize=address -g &&
ASAN_OPTIONS="detect_stack_use_after_return=1"  ./a.out

Can we close the PR? As resolved?


More information about the Gcc-bugs mailing list