[Bug c/105679] erroneous -Warray-bounds warning with sanitizer

kees at outflux dot net gcc-bugzilla@gcc.gnu.org
Sat May 21 00:33:58 GMT 2022


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105679

--- Comment #1 from Kees Cook <kees at outflux dot net> ---
The Linux kernel has encountered at least two of these (seen as specifically
"array subscript 32", though the root cause may be causing many others:

../drivers/net/wireless/ath/ath9k/mac.c:373:22: warning: array subscript 32 is
above array bounds of 'struct ath9k_tx_queue_info[10]' [-Warray-bounds]
../arch/x86/kvm/ioapic.c:213:33: warning: array subscript 32 is above array
bounds of 'union kvm_ioapic_redirect_entry[24]' [-Warray-bounds]


More information about the Gcc-bugs mailing list