[LLVMbugs] [Bug 20102] New: Analyser gives a false positive because it assumes errno can give a zero result after a failing function call.
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sun Jun 22 20:22:16 PDT 2014
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: kremenek at apple.com
Reporter: sstewartgallus00 at mylangara.bc.ca
CC: llvmbugs at cs.uiuc.edu
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140623/ffa0609c/attachment.html>
More information about the llvm-bugs
mailing list