Skip to content

Commit e9c76dd

Browse files
fixup! fixup! fixup! fixup! fixup! fixup! fixup! Fix #8260 Improve check: Pointer calculation result not null
1 parent 94537bf commit e9c76dd

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/checkcondition.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1182,6 +1182,8 @@ static const Token* getPointerAdditionCalcToken(const Token * const tok)
11821182
for (const ValueFlow::Value& val : op->values()) {
11831183
if (!val.isSymbolicValue())
11841184
continue;
1185+
if (!val.isKnown())
1186+
continue;
11851187
if (isPointerArithmeticAdd(val.tokvalue))
11861188
return op;
11871189
}

0 commit comments

Comments
 (0)