https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84546
Thomas Koenig <tkoenig at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-02-25 Ever confirmed|0 |1 --- Comment #1 from Thomas Koenig <tkoenig at gcc dot gnu.org> --- [tkoenig@gcc1-power7 Source]$ gfortran -g -fsanitize=address a.f90 [tkoenig@gcc1-power7 Source]$ ./a.out ================================================================= ==12476==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x0a1000000092 at pc 0x3fffa4942a8c bp 0x3fffdf823f70 sp 0x3fffdf823fe0 WRITE of size 3 at 0x0a1000000092 thread T0 #0 0x3fffa4942a88 in __interceptor_memmove ../../../../trunk/libsanitizer/asan/asan_interceptors.cc:449 #1 0x100056c0 in __copy_character_1 /home/tkoenig/Source/a.f90:23 #2 0x1000532c in __copy_any_vector_type_Any_vector /home/tkoenig/Source/a.f90:23 #3 0x1000375c in MAIN__ /home/tkoenig/Source/a.f90:42 #4 0x10005780 in main /home/tkoenig/Source/a.f90:25 #5 0x3fffa43f6be8 (/lib64/libc.so.6+0x46be8) 0x0a1000000092 is located 0 bytes to the right of 2-byte region [0x0a1000000090,0x0a1000000092) allocated by thread T0 here: #0 0x3fffa49dcb10 in __interceptor_malloc ../../../../trunk/libsanitizer/asan/asan_malloc_linux.cc:62 #1 0x10004f04 in __copy_any_vector_type_Any_vector /home/tkoenig/Source/a.f90:23 #2 0x1000375c in MAIN__ /home/tkoenig/Source/a.f90:42 #3 0x10005780 in main /home/tkoenig/Source/a.f90:25 #4 0x3fffa43f6be8 (/lib64/libc.so.6+0x46be8) #5 0x3fffa43f6e10 (/lib64/libc.so.6+0x46e10)