* [Bug middle-end/97048] [meta-bug] bogus/missing -Wstringop-overread warnings
2020-09-14 16:23 [Bug middle-end/97048] New: bogus/missing -Wstringop-overread warnings msebor at gcc dot gnu.org
@ 2020-09-14 16:24 ` msebor at gcc dot gnu.org
2020-09-14 19:24 ` msebor at gcc dot gnu.org
` (11 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: msebor at gcc dot gnu.org @ 2020-09-14 16:24 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97048
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|bogus/missing |[meta-bug] bogus/missing
|-Wstringop-overread |-Wstringop-overread
|warnings |warnings
Status|UNCONFIRMED |NEW
Last reconfirmed| |2020-09-14
Alias| |Wstringop-overread
Keywords| |diagnostic
Ever confirmed|0 |1
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug middle-end/97048] [meta-bug] bogus/missing -Wstringop-overread warnings
2020-09-14 16:23 [Bug middle-end/97048] New: bogus/missing -Wstringop-overread warnings msebor at gcc dot gnu.org
2020-09-14 16:24 ` [Bug middle-end/97048] [meta-bug] " msebor at gcc dot gnu.org
@ 2020-09-14 19:24 ` msebor at gcc dot gnu.org
2020-09-14 19:28 ` msebor at gcc dot gnu.org
` (10 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: msebor at gcc dot gnu.org @ 2020-09-14 19:24 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97048
Bug 97048 depends on bug 82456, which changed state.
Bug 82456 Summary: missing -Wstringop-overread on strcpy reading past the end of an array
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82456
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug middle-end/97048] [meta-bug] bogus/missing -Wstringop-overread warnings
2020-09-14 16:23 [Bug middle-end/97048] New: bogus/missing -Wstringop-overread warnings msebor at gcc dot gnu.org
2020-09-14 16:24 ` [Bug middle-end/97048] [meta-bug] " msebor at gcc dot gnu.org
2020-09-14 19:24 ` msebor at gcc dot gnu.org
@ 2020-09-14 19:28 ` msebor at gcc dot gnu.org
2021-11-12 19:53 ` msebor at gcc dot gnu.org
` (9 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: msebor at gcc dot gnu.org @ 2020-09-14 19:28 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97048
Bug 97048 depends on bug 81437, which changed state.
Bug 81437 Summary: missing -Wstringop-overread reading past the end of a string
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81437
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug middle-end/97048] [meta-bug] bogus/missing -Wstringop-overread warnings
2020-09-14 16:23 [Bug middle-end/97048] New: bogus/missing -Wstringop-overread warnings msebor at gcc dot gnu.org
` (2 preceding siblings ...)
2020-09-14 19:28 ` msebor at gcc dot gnu.org
@ 2021-11-12 19:53 ` msebor at gcc dot gnu.org
2022-04-12 21:14 ` redi at gcc dot gnu.org
` (8 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: msebor at gcc dot gnu.org @ 2021-11-12 19:53 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97048
Bug 97048 depends on bug 98465, which changed state.
Bug 98465 Summary: Bogus -Wstringop-overread with -std=gnu++20 -O2 and std::string::insert
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98465
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug middle-end/97048] [meta-bug] bogus/missing -Wstringop-overread warnings
2020-09-14 16:23 [Bug middle-end/97048] New: bogus/missing -Wstringop-overread warnings msebor at gcc dot gnu.org
` (3 preceding siblings ...)
2021-11-12 19:53 ` msebor at gcc dot gnu.org
@ 2022-04-12 21:14 ` redi at gcc dot gnu.org
2022-12-20 0:06 ` msebor at gcc dot gnu.org
` (7 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: redi at gcc dot gnu.org @ 2022-04-12 21:14 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97048
Bug 97048 depends on bug 100516, which changed state.
Bug 100516 Summary: [11 Regression] Unexpected -Wstringop-overread in deque<char> initialization from empty initializer_list
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100516
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug middle-end/97048] [meta-bug] bogus/missing -Wstringop-overread warnings
2020-09-14 16:23 [Bug middle-end/97048] New: bogus/missing -Wstringop-overread warnings msebor at gcc dot gnu.org
` (4 preceding siblings ...)
2022-04-12 21:14 ` redi at gcc dot gnu.org
@ 2022-12-20 0:06 ` msebor at gcc dot gnu.org
2022-12-20 10:13 ` roman.zilka at gmail dot com
` (6 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: msebor at gcc dot gnu.org @ 2022-12-20 0:06 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97048
Bug 97048 depends on bug 108154, which changed state.
Bug 108154 Summary: Inappropriate -Wstringop-overread in the C99 [static n] func param decl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108154
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug middle-end/97048] [meta-bug] bogus/missing -Wstringop-overread warnings
2020-09-14 16:23 [Bug middle-end/97048] New: bogus/missing -Wstringop-overread warnings msebor at gcc dot gnu.org
` (5 preceding siblings ...)
2022-12-20 0:06 ` msebor at gcc dot gnu.org
@ 2022-12-20 10:13 ` roman.zilka at gmail dot com
2023-03-28 13:26 ` rguenth at gcc dot gnu.org
` (5 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: roman.zilka at gmail dot com @ 2022-12-20 10:13 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97048
Bug 97048 depends on bug 108154, which changed state.
Bug 108154 Summary: Inappropriate -Wstringop-overread in the C99 [static n] func param decl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108154
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
Resolution|INVALID |---
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug middle-end/97048] [meta-bug] bogus/missing -Wstringop-overread warnings
2020-09-14 16:23 [Bug middle-end/97048] New: bogus/missing -Wstringop-overread warnings msebor at gcc dot gnu.org
` (6 preceding siblings ...)
2022-12-20 10:13 ` roman.zilka at gmail dot com
@ 2023-03-28 13:26 ` rguenth at gcc dot gnu.org
2023-03-31 11:36 ` rguenth at gcc dot gnu.org
` (4 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-03-28 13:26 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97048
Bug 97048 depends on bug 107087, which changed state.
Bug 107087 Summary: [13 Regression] bits/stl_algobase.h:431: warning: 'void* __builtin_memcpy(void*, const void*, unsigned int)' reading between 8 and 2147483644 bytes from a region of size 4 [-Wstringop-overread]
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107087
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug middle-end/97048] [meta-bug] bogus/missing -Wstringop-overread warnings
2020-09-14 16:23 [Bug middle-end/97048] New: bogus/missing -Wstringop-overread warnings msebor at gcc dot gnu.org
` (7 preceding siblings ...)
2023-03-28 13:26 ` rguenth at gcc dot gnu.org
@ 2023-03-31 11:36 ` rguenth at gcc dot gnu.org
2023-05-16 17:18 ` tonyguil at gmail dot com
` (3 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-03-31 11:36 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97048
Bug 97048 depends on bug 107087, which changed state.
Bug 107087 Summary: [12/13 Regression] bits/stl_algobase.h:431: warning: 'void* __builtin_memcpy(void*, const void*, unsigned int)' reading between 8 and 2147483644 bytes from a region of size 4 [-Wstringop-overread]
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107087
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |---
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug middle-end/97048] [meta-bug] bogus/missing -Wstringop-overread warnings
2020-09-14 16:23 [Bug middle-end/97048] New: bogus/missing -Wstringop-overread warnings msebor at gcc dot gnu.org
` (8 preceding siblings ...)
2023-03-31 11:36 ` rguenth at gcc dot gnu.org
@ 2023-05-16 17:18 ` tonyguil at gmail dot com
2023-05-16 17:28 ` redi at gcc dot gnu.org
` (2 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: tonyguil at gmail dot com @ 2023-05-16 17:18 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97048
Tony Guilfoyle <tonyguil at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tonyguil at gmail dot com
--- Comment #1 from Tony Guilfoyle <tonyguil at gmail dot com> ---
Source file foo.cpp:
#include <vector>
struct T
{
void* p ;
std::vector<char> a[10] ;
} ;
void f (T& t, const std::vector<char>& u, int i)
{
std::vector<char>& v = t.a[i] ;
std::vector<char> w (u.begin(), u.end()) ;
v.resize (v.size() - w.size()) ; // <-- Warning generated here
}
Command line: g++ -std=c++20 -Wall -O3 -c -o foo.obj foo.cpp
g++ --version: g++.exe (MinGW-W64 x86_64-ucrt-posix-seh, built by Brecht
Sanders) 12.2.0
Problem: Spurious warning emitted:
specified bound between 9223372036854775808 and 18446744073709551614 exceeds
maximum object size 9223372036854775807 [-Wstringop-overflow=]
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug middle-end/97048] [meta-bug] bogus/missing -Wstringop-overread warnings
2020-09-14 16:23 [Bug middle-end/97048] New: bogus/missing -Wstringop-overread warnings msebor at gcc dot gnu.org
` (9 preceding siblings ...)
2023-05-16 17:18 ` tonyguil at gmail dot com
@ 2023-05-16 17:28 ` redi at gcc dot gnu.org
2023-05-17 10:14 ` tonyguil at gmail dot com
2023-06-01 15:11 ` redi at gcc dot gnu.org
12 siblings, 0 replies; 14+ messages in thread
From: redi at gcc dot gnu.org @ 2023-05-16 17:28 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97048
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Tony, this is just a meta-bug that has links to the real bugs. Please either
add that as a comment to an existing bug (if it's the same as one of them) or
file a new bug (and set "Blocks: 97048" so that it links back here). But since
your one seems to be about -Wstringop-overflow not -Wstringop-overread I don't
think it is actually related to this meta-bug at all. Maybe it's related to PR
97185 instead.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug middle-end/97048] [meta-bug] bogus/missing -Wstringop-overread warnings
2020-09-14 16:23 [Bug middle-end/97048] New: bogus/missing -Wstringop-overread warnings msebor at gcc dot gnu.org
` (10 preceding siblings ...)
2023-05-16 17:28 ` redi at gcc dot gnu.org
@ 2023-05-17 10:14 ` tonyguil at gmail dot com
2023-06-01 15:11 ` redi at gcc dot gnu.org
12 siblings, 0 replies; 14+ messages in thread
From: tonyguil at gmail dot com @ 2023-05-17 10:14 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97048
--- Comment #3 from Tony Guilfoyle <tonyguil at gmail dot com> ---
I jumped through enough hoops already, I think. You can take it from
here if you want.
All the best,
Tony
On 16/05/2023 18:28, redi at gcc dot gnu.org wrote:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97048
>
> --- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
> Tony, this is just a meta-bug that has links to the real bugs. Please either
> add that as a comment to an existing bug (if it's the same as one of them) or
> file a new bug (and set "Blocks: 97048" so that it links back here). But since
> your one seems to be about -Wstringop-overflow not -Wstringop-overread I don't
> think it is actually related to this meta-bug at all. Maybe it's related to PR
> 97185 instead.
>
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug middle-end/97048] [meta-bug] bogus/missing -Wstringop-overread warnings
2020-09-14 16:23 [Bug middle-end/97048] New: bogus/missing -Wstringop-overread warnings msebor at gcc dot gnu.org
` (11 preceding siblings ...)
2023-05-17 10:14 ` tonyguil at gmail dot com
@ 2023-06-01 15:11 ` redi at gcc dot gnu.org
12 siblings, 0 replies; 14+ messages in thread
From: redi at gcc dot gnu.org @ 2023-06-01 15:11 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97048
Bug 97048 depends on bug 110060, which changed state.
Bug 110060 Summary: [14 Regression] Adding optimizer hints to std::vector causes a new -Wstringop-overread false positive
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110060
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
^ permalink raw reply [flat|nested] 14+ messages in thread