[Bug analyzer/106597] New: False positive Wanalyzer-out-of-bounds warnings in coreutils/gnulib
tlange at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Aug 12 14:14:09 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106597
Bug ID: 106597
Summary: False positive Wanalyzer-out-of-bounds warnings in
coreutils/gnulib
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: analyzer
Assignee: dmalcolm at gcc dot gnu.org
Reporter: tlange at gcc dot gnu.org
Target Milestone: ---
Created attachment 53446
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53446&action=edit
false positive Wanalyzer-out-of-bounds in coreutils
When compiling coreutils with -fanalyzer enabled, a false positive
Wanalyzer-out-of-bounds underread warning is emitted in a complex flow. The
analyzer does think 'idx' can be 0 and thus, creates an offset_region with
offset - 1 in multiple locations. Logs attached.
More information about the Gcc-bugs
mailing list