Fix 11865: Assert failure in setSymbolic() (#5318)
This commit is contained in:
parent
5c6962c273
commit
0901ba9a7e
|
@ -5448,6 +5448,8 @@ static void valueFlowSymbolicOperators(const SymbolDatabase& symboldatabase, con
|
||||||
const Token* arg = tok->next()->astOperand2();
|
const Token* arg = tok->next()->astOperand2();
|
||||||
if (!arg)
|
if (!arg)
|
||||||
continue;
|
continue;
|
||||||
|
if (arg->exprId() == 0)
|
||||||
|
continue;
|
||||||
ValueFlow::Value c = inferCondition(">=", arg, 0);
|
ValueFlow::Value c = inferCondition(">=", arg, 0);
|
||||||
if (!c.isKnown())
|
if (!c.isKnown())
|
||||||
continue;
|
continue;
|
||||||
|
|
|
@ -7354,6 +7354,11 @@ private:
|
||||||
" }\n"
|
" }\n"
|
||||||
"}\n";
|
"}\n";
|
||||||
valueOfTok(code, "i");
|
valueOfTok(code, "i");
|
||||||
|
|
||||||
|
code = "void f() {\n"
|
||||||
|
" if (llabs(0x80000000ffffffffL) == 0x7fffffff00000001L) {}\n"
|
||||||
|
"}\n";
|
||||||
|
valueOfTok(code, "f");
|
||||||
}
|
}
|
||||||
|
|
||||||
void valueFlowCrashConstructorInitialization() { // #9577
|
void valueFlowCrashConstructorInitialization() { // #9577
|
||||||
|
|
Loading…
Reference in New Issue