[Bug c/81524] Bogus or missing warnings when dereferencing pointer to deallocated stack memory
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jul 24 08:54:00 GMT 2017
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.
More information about the Gcc-bugs
mailing list