[Bug tree-optimization/82977] [8 Regression] AddressSanitizer: heap-use-after-free in strlen_optimize_stmt .././../gcc/tree-ssa-strlen.c:2971
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Nov 14 09:41:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82977
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Also, because strlen_to_stridx is only useful if warn_stringop_truncation, I
think if it is turned into a pointer to hash_map, then it could be left NULL if
!warn_stringop_truncation, and all the strlen_to_stridx related stuff only
performed if strlen_to_stridx != NULL.
More information about the Gcc-bugs
mailing list