https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83106
Jakub Jelinek changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83106
--- Comment #7 from Jakub Jelinek ---
Author: jakub
Date: Wed Nov 22 20:49:56 2017
New Revision: 255080
URL: https://gcc.gnu.org/viewcvs?rev=255080=gcc=rev
Log:
PR libgomp/83106
* target.c (gomp_target_init): Compute lengths
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83106
--- Comment #6 from Andreas Schwab ---
If you already know strlen (d) you can use strcpy or memcpy instead.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83106
--- Comment #5 from Martin Sebor ---
Yes, exactly. It's these unintended uses that are a common problem and that
the warning is designed to help prevent. They are rare in carefully written
code bases like GCC but more common in software
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83106
--- Comment #4 from Jakub Jelinek ---
(In reply to Martin Sebor from comment #3)
> The warning for strncat helps find similar bugs as for strncpy: defeating
> the size constraint by specifying the length of the source rather than the
> amount of
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83106
--- Comment #3 from Martin Sebor ---
The warning for strncat helps find similar bugs as for strncpy: defeating the
size constraint by specifying the length of the source rather than the amount
of space in the destination:
strncat (d, s,
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83106
Martin Sebor changed:
What|Removed |Added
CC||mliska at suse dot cz
--- Comment #2
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83106
Jakub Jelinek changed:
What|Removed |Added
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83106
Richard Biener changed:
What|Removed |Added
Keywords||build, diagnostic
CC|