[LLVMbugs] [Bug 7770] New: easy to prevent false positive

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Jul 31 04:55:59 PDT 2010


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

           Summary: easy to prevent false positive
           Product: clang
           Version: unspecified
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: Static Analyzer
        AssignedTo: kremenek at apple.com
        ReportedBy: dodegy at flying-stampe.de
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=5301)
 --> (http://llvm.org/bugs/attachment.cgi?id=5301)
little demo of the false positive. 

The static analyzer reports a null pointer dereference witch doesn't happen. It
doesn't check the exit condition on a for loop correctly.

I've added 3 functions with minimal differences. The analyzer works correct in
two of them.

Hope that helps

-- 
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