[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: nstrftime.c fails to build due to memset overflow
From: |
Marcus Müller |
Subject: |
Re: nstrftime.c fails to build due to memset overflow |
Date: |
Tue, 14 Mar 2023 18:09:55 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 |
Hi Bruna,
thanks for answering,
On 14.03.23 17:41, Bruno Haible wrote:
The build only fails because coreutils' configure.ac turns warnings into
errors by default in some situation.
Obviously, I agree with this on the deprecated functionality warning, but the string
method argument overflow warning really triggered my curiosity.
So, this is not a significant bug. It's merely a false positive flagged by
your compiler.
Uff! Sorry for the noise then.
There are *many* -Wstringop-overflow bugs in recent GCC versions, see
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88443
Some of them even have the exact same warning message, see
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86345
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89337
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100477
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106409
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108377
Didn't expect that; I had expected integer derivation warnings are "pretty safe", as
integer constant folding is something an optimizing compiler has to do *correctly*,
anyway. (and, honestly, coming from a C++ background, these are *a lot of warnings* that
we're getting here).
Thanks,
Marcus
- nstrftime.c fails to build due to memset overflow, Marcus Müller, 2023/03/14
- Re: nstrftime.c fails to build due to memset overflow, Bruno Haible, 2023/03/14
- Re: nstrftime.c fails to build due to memset overflow,
Marcus Müller <=
- Re: nstrftime.c fails to build due to memset overflow, Pádraig Brady, 2023/03/14
- Re: nstrftime.c fails to build due to memset overflow, Bruno Haible, 2023/03/14
- Re: nstrftime.c fails to build due to memset overflow, Marcus Müller, 2023/03/14
- Re: nstrftime.c fails to build due to memset overflow, Paul Eggert, 2023/03/14
- Re: nstrftime.c fails to build due to memset overflow, Marcus Müller, 2023/03/15
- Re: nstrftime.c fails to build due to memset overflow, Paul Eggert, 2023/03/15
- Re: nstrftime.c fails to build due to memset overflow, Marcus Müller, 2023/03/15
- Re: nstrftime.c fails to build due to memset overflow, Paul Eggert, 2023/03/15
- Re: nstrftime.c fails to build due to memset overflow, Marcus Müller, 2023/03/16
- Re: nstrftime.c fails to build due to memset overflow, Bruno Haible, 2023/03/15