[Bug tree-optimization/124183] Erroneous -Wformat-truncation= warning using -O3

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Feb 20 15:38:58 GMT 2026


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

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
So this code does have an issue you don't check the return value of malloc
which can be null if running out of memory ...


More information about the Gcc-bugs mailing list