[Bug c/83688] Please check if buffers may overlap when copying strings
bugzilla@poradnik-webmastera.com
gcc-bugzilla@gcc.gnu.org
Thu Jan 4 15:52:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83688
--- Comment #1 from Daniel Fruzynski <bugzilla@poradnik-webmastera.com> ---
This also would allow to catch code which use sprintf to concatenate strings,
what is an undefined behavior (snippet from
https://linux.die.net/man/3/snprintf):
sprintf(buf, "%s some further text", buf);
More information about the Gcc-bugs
mailing list