This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/81524] Bogus or missing warnings when dereferencing pointer to deallocated stack memory
- From: "marxin at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 24 Jul 2017 12:39:10 +0000
- Subject: [Bug c/81524] Bogus or missing warnings when dereferencing pointer to deallocated stack memory
- Auto-submitted: auto-generated
- References: <bug-81524-4@http.gcc.gnu.org/bugzilla/>
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?