[LLVMbugs] [Bug 12921] New: [clang 3.1 analyzer] False positive with constant array size

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed May 23 07:54:05 PDT 2012


http://llvm.org/bugs/show_bug.cgi?id=12921

             Bug #: 12921
           Summary: [clang 3.1 analyzer] False positive with constant
                    array size
           Product: clang
           Version: 3.0
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Static Analyzer
        AssignedTo: kremenek at apple.com
        ReportedBy: cand at gmx.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Created attachment 8624
  --> http://llvm.org/bugs/attachment.cgi?id=8624
Test case for the false positive

Using clang analyzer 3.1 with the attached file results in a false positive.

The array size is constant and known compile-time, it cannot be less than 0.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list