[Bug sanitizer/60861] out of bounds access of global var in .rodata/.bss not detected
jan.smets@alcatel-lucent.com
gcc-bugzilla@gcc.gnu.org
Wed Apr 16 21:33:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60861
--- Comment #2 from Jan Smets <jan.smets@alcatel-lucent.com> ---
Using -fno-common (while compiling as C), or compiling as C++ works for the
unitialized bss example:
int testGlobalOutOfBoundsRODATAVar[5]; /* bss : works with -fno-common
(compiled as C) or when compiled as C++ */
but not for the .rodata example.
More information about the Gcc-bugs
mailing list