https://bugs.llvm.org/show_bug.cgi?id=51358

            Bug ID: 51358
           Summary: Obvious false positive: bleft>0, bleft<=7; scan-build
                    reports (32 - bleft) < 0
           Product: clang
           Version: 11.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Static Analyzer
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]

Created attachment 25107
  --> https://bugs.llvm.org/attachment.cgi?id=25107&action=edit
false positive report

Hello.

I'm using scan-build-11 from clang-tools-11 1:11.0.1-2~bpo10+1 (Debian 10).

Attaching the false positive report.

Line 1519: Checking that bleft > 0.
Line 1524: Checking that bleft <= 7.

Line 1527: 1 << (32 - bleft)
scan-build reports that (32 - bleft) is negative. But it cannot be negative,
because bleft=[1..7].

Best regards, Vladimir

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to