[LLVMbugs] [Bug 17538] New: Invalid analysis path

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Oct 10 12:58:24 PDT 2013


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

            Bug ID: 17538
           Summary: Invalid analysis path
           Product: clang
           Version: unspecified
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: Static Analyzer
          Assignee: kremenek at apple.com
          Reporter: michael.morrell at intel.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 11357
  --> http://llvm.org/bugs/attachment.cgi?id=11357&action=edit
Source showing problem

Version 275 of the Mac OS X checker gives an incorrect "null dereference" error
on the attached source.  Just run "checker-275/scan-build c++ -c
invalidpath.cpp"
and look at the path it analyzed.

It took a path where retValue.Success was false, but then immediately went down
a
patch where it was true, which is impossible.

The really weird part is that if you swap the first 2 lines in the "foo"
function, the error isn't reported.

Another weirdness is that retValue is initialized in such a way that
retValue.Success is true so that the path where it assumed it was false is not
possible either.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20131010/7ee537aa/attachment.html>


More information about the llvm-bugs mailing list