[Bug c/67618] malloc+memset optimization breaks code

schwab@linux-m68k.org gcc-bugzilla@gcc.gnu.org
Thu Sep 17 19:49:00 GMT 2015


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67618

--- Comment #3 from Andreas Schwab <schwab@linux-m68k.org> ---
Trying to read the (uninitialized) contents of the allocated memory for x <= 12
would be undefined behaviour, so calling calloc instead does not change the
defined behaviour.



More information about the Gcc-bugs mailing list