https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101451
Quentin Armitage changed:
What|Removed |Added
Status|RESOLVED|REOPENED
Resolution|INVALID
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101451
--- Comment #5 from Quentin Armitage ---
In the code of my original example (which I have simplified)
===
#include
static char dest[16];
static char src[16] = "012345678901234";
int main(__attribute__(void)
{
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101451
Martin Sebor changed:
What|Removed |Added
Resolution|--- |INVALID
CC|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101451
--- Comment #3 from Quentin Armitage ---
According to the man page for strncat:
As with strcat(), the resulting string in dest is always null-terminated.
If src contains n or more bytes, strncat() writes n+1 bytes to dest
(n from
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101451
--- Comment #2 from Quentin Armitage ---
Created attachment 51297
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51297&action=edit
ipvswrapper.i for strncpy truncated warning
The following warning is generated:
gcc -c -o ipvswrapper.o1 -
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101451
Andrew Pinski changed:
What|Removed |Added
Last reconfirmed||2021-08-11
Status|UNCONFIRM