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.

Reply via email to