[LLVMbugs] [Bug 15166] New: False positive on dereference of null pointer warning
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Feb 5 10:00:11 PST 2013
http://llvm.org/bugs/show_bug.cgi?id=15166
Bug ID: 15166
Summary: False positive on dereference of null pointer warning
Product: clang
Version: unspecified
Hardware: Macintosh
OS: MacOS X
Status: NEW
Severity: enhancement
Priority: P
Component: Static Analyzer
Assignee: kremenek at apple.com
Reporter: michael.morrell at intel.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Using the static analyzer from the checker-270 build for MacOSX on the
following
C++ source:
============================
void set_x(void *&);
int foo(void)
{
int *x = 0;
set_x((void *&)x);
return *x;
}
============================
results in:
warning: Dereference of null pointer (loaded from variable 'x')
This doesn't happen if the "void" is replaced by "int".
--
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/20130205/764a4aa8/attachment.html>
More information about the llvm-bugs
mailing list