[Bug middle-end/99578] [11/12 Regression] gcc-11 -Warray-bounds or -Wstringop-overread warning when accessing a pointer from integer literal
kees at outflux dot net
gcc-bugzilla@gcc.gnu.org
Wed Mar 16 19:49:13 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99578
Kees Cook <kees at outflux dot net> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |kees at outflux dot net
--- Comment #30 from Kees Cook <kees at outflux dot net> ---
The Linux kernel is seeing more and more of these warnings and it's becoming a
bit of a burden. For example:
https://lore.kernel.org/linux-hardening/20220227195918.705219-1-keescook@chromium.org
Given that this is a regression in behavior, and the kernel is not alone in
tripping over this (9 duplicate bugs reported here already), can this be given
greater priority?
Would it be possible to add an option to just disable the "constant is a NULL
pointer" logic directly?
More information about the Gcc-bugs
mailing list