[llvm-bugs] [Bug 32447] New: llvm/tools/clang/lib/Sema/SemaOverload.cpp: PVS-Studio: CWE-476 (NULL Pointer Dereference)
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Mar 28 00:46:05 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=32447
Bug ID: 32447
Summary: llvm/tools/clang/lib/Sema/SemaOverload.cpp:
PVS-Studio: CWE-476 (NULL Pointer Dereference)
Product: clang
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: razmyslov at viva64.com
CC: dgregor at apple.com, llvm-bugs at lists.llvm.org
We have found a weakness using PVS-Studio tool. PVS-Studio is a static code
analyzer for C, C++ and C#: https://www.viva64.com/en/pvs-studio/
Analyzer warning: V595 The 'Initializer' pointer was utilized before it was
verified against nullptr. Check lines: 335, 338. semaoverload.cpp 335
NarrowingKind
StandardConversionSequence::getNarrowingKind(....) const {
....
const Expr *Initializer = IgnoreNarrowingConversion(Converted);
if (Initializer->isValueDependent()) // <=
return NK_Dependent_Narrowing;
if (Initializer && // <=
Initializer->isIntegerConstantExpr(IntConstantValue, Ctx)){
....
}
--
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/20170328/36f97c85/attachment.html>
More information about the llvm-bugs
mailing list