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

            Bug ID: 20102
           Summary: Analyser gives a false positive because it assumes
                    errno can give a zero result after a failing function
                    call.
           Product: clang
           Version: 3.4
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Static Analyzer
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

Created attachment 12694
  --> http://llvm.org/bugs/attachment.cgi?id=12694&action=edit
The source that gives the false positive

Attached is code that gives a false positive when compiled with "clang
--analyze -Xclang -analyzer-output=text -o- -std=c99 static-analyzer.c
-DNDEBUG".

Clang should be able to tell that right after a failing function call errno can
never be zero.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to