Skip to content

Commit

Permalink
nullptr deref
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchr-github committed Aug 21, 2023
1 parent 5b7b8ad commit 588345e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/symboldatabase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7690,7 +7690,8 @@ ValueType::MatchResult ValueType::matchParameter(const ValueType *call, const Va
}

if (call->typeScope != nullptr || func->typeScope != nullptr) {
if (call->typeScope != func->typeScope && !(call->typeScope->definedType && call->typeScope->definedType->isDerivedFrom(func->typeScope->className)))
if (call->typeScope != func->typeScope &&
!(call->typeScope && func->typeScope && call->typeScope->definedType && call->typeScope->definedType->isDerivedFrom(func->typeScope->className)))
return ValueType::MatchResult::NOMATCH;
}

Expand Down

0 comments on commit 588345e

Please sign in to comment.