RFC: Followup to PR91593
Andreas Schwab
schwab@linux-m68k.org
Tue Oct 1 08:12:00 GMT 2019
On Sep 30 2019, Jerry DeLisle <jvdelisle@charter.net> wrote:
> The first attempt to fix (above) is completely off. I have tried various
> combinations of code changes and I am beginning to think the warning is
> bogus:
>
> In function âbtoa_bigâ,
> inlined from âwrite_bâ at ../../../trunk/libgfortran/io/write.c:1217:11:
> ../../../trunk/libgfortran/io/write.c:1052:6: warning: writing 1 byte into
> a region of size 0 [-Wstringop-overflow=]
> 1052 | *q = '\0';
> | ~~~^~~~~~
If len > sizeof (GFC_UINTEGER_LARGEST), then you are writing more than
GFC_BTOA_BUF_SIZE, don't you?
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."
More information about the Gcc
mailing list