[Bug tree-optimization/83007] [8 Regression] -Wstringop-overflow false positive
msebor at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Nov 22 16:00:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83007
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
See Also| |https://gcc.gnu.org/bugzill
| |a/show_bug.cgi?id=83106
--- Comment #4 from Martin Sebor <msebor at gcc dot gnu.org> ---
The target.c use is safe but indistinguishable from the common unsafe use case:
strncat (d, s, strlen (s));
This latter use case is what the warning is designed to help prevent. See also
bug 83106 for some more background.
More information about the Gcc-bugs
mailing list