[llvm-bugs] [Bug 34193] New: False negative in following pointer for core.NullDereference
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Aug 15 04:57:24 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=34193
Bug ID: 34193
Summary: False negative in following pointer for
core.NullDereference
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Static Analyzer
Assignee: kremenek at apple.com
Reporter: whisperity at gmail.com
CC: llvm-bugs at lists.llvm.org
Consider the following code:
int* a() { return nullptr; }
int main()
{
int* ptr = a();
int x = *ptr;
return x;
}
While this is clearly a null dereference, ClangSA does not seem to properly
follow this pointer in the analyzer, or some inner heuristics swallow this
case.
--
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/20170815/f9a2786f/attachment.html>
More information about the llvm-bugs
mailing list