[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


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

            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:

https://buildbot.libsdl.org/sdl-static-analysis/sdl-macosx-static-analysis/sdl-macosx-static-analysis-8/report-0a5600.html#EndPath

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.

Thanks,
--ryan.

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