[LLVMbugs] [Bug 16021] New: False positive: Undefined or garbage value returned to caller
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed May 15 16:44:14 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=16021
Bug ID: 16021
Summary: False positive: Undefined or garbage value returned to
caller
Product: clang
Version: 3.1
Hardware: Macintosh
OS: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: Static Analyzer
Assignee: kremenek at apple.com
Reporter: kyle at omnigroup.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 10519
--> http://llvm.org/bugs/attachment.cgi?id=10519&action=edit
A program which causes the analyzer to emit a spurious "Undefined or garbage
value returned to caller" warning
The attached program causes the analyzer to emit "Undefined or garbage value
returned to caller" for the return value of -cachedObjectWithNumber:. The
analyzer seems to skip over the execution of the while loop entirely, even
though by virtue of the enclosing if statement, it is guaranteed to execute at
least once.
--
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/20130515/19f5195e/attachment.html>
More information about the llvm-bugs
mailing list