This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/83007] [8 Regression] -Wstringop-overflow false positive
- From: "msebor at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 22 Nov 2017 16:00:41 +0000
- Subject: [Bug tree-optimization/83007] [8 Regression] -Wstringop-overflow false positive
- Auto-submitted: auto-generated
- References: <bug-83007-4@http.gcc.gnu.org/bugzilla/>
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.