https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106920
--- Comment #5 from Dominique Martinet ---
hmm this is a pretty complex topic.
My problem like pointed out in
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99578 is more with all the legacy
code that I have to deal with, that isn't maintained
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106920
--- Comment #2 from Dominique Martinet ---
Thanks for the very fast reply!
since you mentioned null pointers I now see this warning doesn't happen if I
try with a larger constant, I just had bad luck that imx-atf uses an address <
4k...?
I
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106920
Bug ID: 106920
Summary: -Warray-bound false positive regression with -O2 or
-Os
Product: gcc
Version: 12.2.0
Status: UNCONFIRMED
Severity: normal
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103217
--- Comment #10 from Dominique Martinet ---
Thank you for this work! I can confirm this indeed fixed the warning in my
application as well, time to add a fanalyzer build to my CI :)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103217
--- Comment #5 from Dominique Martinet ---
Ah, this apparently needed the unused fields in the struct, and the extra
config_init() call.
Here's something trimmed down from the actual program instead of building back
up:
-
#define
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103217
Dominique Martinet changed:
What|Removed |Added
Resolution|FIXED |---
Status|RESOLVED
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99269
Dominique Martinet changed:
What|Removed |Added
CC||npfhrotynz-ptnqh.myvf@noclu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103217
Bug ID: 103217
Summary: analyzer false positive on leak warning when using
indirect strdup
Product: gcc
Version: 11.2.1
Status: UNCONFIRMED
Severity: normal