[Bug ada/79309] incorrectly bounded calls to strncat in adaint.c
ebotcazou at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Feb 1 08:19:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79309
Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2017-02-01
CC| |ebotcazou at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #2 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
> The following patch fixes the problem:
Thanks, but I don't think that we want the %.*s for portability reasons, so a
simple sprintf with an enlarged buffer (e.g. 256 bytes) will do.
More information about the Gcc-bugs
mailing list