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: "jakub 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 08:54:28 +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
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
If you want to reliably detect this, just use -fsanitize=address, starting with
GCC 7.x there is use after scope sanitization that should report this.