[LLVMbugs] [Bug 19210] New: False positive with separate test for global variable?

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Mar 20 08:31:34 PDT 2014


            Bug ID: 19210
           Summary: False positive with separate test for global variable?
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Static Analyzer
          Assignee: kremenek at apple.com
          Reporter: icculus at icculus.org
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

(Tested against checker-276)

This appears to be a false positive:


In Step #2, it assumes "_this" is NULL, but with this assumption, we would have
returned from SDL_SetWindowPosition() in the CHECK_WINDOW_MAGIC macro at the
top of the function, before Step #1.

I'm not sure if Clang isn't considering that because "_this" is a static
variable at the top of this source module instead of a local variable/argument.


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/20140320/ad7c927a/attachment.html>

More information about the llvm-bugs mailing list