[Bug c/123024] -Wstringop-overread: bogus diagnostic about strncat(3)

foss+gcc@alejandro-colomar.es gcc-bugzilla@gcc.gnu.org
Fri Dec 5 17:27:57 GMT 2025


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

--- Comment #1 from Alejandro Colomar <foss+gcc@alejandro-colomar.es> ---
> This is a totally valid strncat(3) call.  Please move this out of
> -Wstringop-overflow into something new such as -Wstrncat.

s/overflow/overread/


More information about the Gcc-bugs mailing list