[LLVMbugs] [Bug 10934] New: Static analyzer complains about "atoi loop"
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Sep 15 10:53:28 PDT 2011
http://llvm.org/bugs/show_bug.cgi?id=10934
Summary: Static analyzer complains about "atoi loop"
Product: clang
Version: trunk
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: Static Analyzer
AssignedTo: kremenek at apple.com
ReportedBy: mclow at qualcomm.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=7277)
--> (http://llvm.org/bugs/attachment.cgi?id=7277)
A small sample that shows the same error as OpenSSL
MacBook pro/10.6.8/clang build from this morning's TOT (r139789), running the
static analyzer on OpenSSL 1.0.0e, I got an error:
"The left operand to '+' is always 0"
Certainly this is true - the first time through the loop - but not afterwards.
I submit that this is a "bad error" - it flags correct code.
reduced test case attached.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list