This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/83007] [8 Regression] -Wstringop-overflow false positive


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]