[Bug target/67484] options-save.c sanitizer asan detects freed storage referenced heap-use-after-free
zeccav at gmail dot com
gcc-bugzilla@gcc.gnu.org
Thu Apr 28 09:16:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67484
--- Comment #14 from Vittorio Zecca <zeccav at gmail dot com> ---
I still get it in g++ 5.3.0
You may reproduce this one with a version of g++ compiled with
-fsanitize=address
[vitti cc]$/home/vitti/1tb/vitti/local/gcc-5.3.0-address/bin/g++ gccerr26.C -S
=================================================================
==4766==ERROR: AddressSanitizer: heap-use-after-free on address
0x6020000057d0 at pc 0x2b8838780025 bp 0x7fffdc0e27c0 sp
0x7fffdc0e1f70
READ of size 1 at 0x6020000057d0 thread T0
#0 0x2b8838780024 in __interceptor_strcmp
/home/vitti/gcc-5.3.0/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:178
#1 0x10bc6aa in cl_target_option_eq(cl_target_option const*,
cl_target_option const*)
/home/vitti/1tb/vitti/gcc-5.3.0-address/gcc/options-save.c:3555
options-save.c:3555 "|| strcmp (ptr1->x_ix86_arch_string,
ptr2->x_ix86_arch_string)))"
More information about the Gcc-bugs
mailing list