[Bug tree-optimization/104969] Likely a false positive of -D_FORTIFY_SOURCE=3

schwab@linux-m68k.org gcc-bugzilla@gcc.gnu.org
Thu Mar 17 14:25:48 GMT 2022


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

--- Comment #1 from Andreas Schwab <schwab@linux-m68k.org> ---
Passing a max len bigger than the available space is already an error.  The
whole point of snprintf is to never overflow no matter how large the output.


More information about the Gcc-bugs mailing list