Fixed crash in harfbuzz found by daca@home
This commit is contained in:
parent
9e0ae11ca2
commit
49d6bfbd7b
|
@ -1653,7 +1653,7 @@ struct FwdAnalysis::Result FwdAnalysis::checkRecursive(const Token *expr, const
|
||||||
if (result.type != Result::Type::NONE)
|
if (result.type != Result::Type::NONE)
|
||||||
return result;
|
return result;
|
||||||
} else if (Token::simpleMatch(bodyStart->link(), "} else {")) {
|
} else if (Token::simpleMatch(bodyStart->link(), "} else {")) {
|
||||||
bodyStart = bodyStart->tokAt(2);
|
bodyStart = bodyStart->link()->tokAt(2);
|
||||||
FwdAnalysis::Result result = checkRecursive(expr, bodyStart, bodyStart->link(), exprVarIds, local, true, depth);
|
FwdAnalysis::Result result = checkRecursive(expr, bodyStart, bodyStart->link(), exprVarIds, local, true, depth);
|
||||||
if (result.type != Result::Type::NONE)
|
if (result.type != Result::Type::NONE)
|
||||||
return result;
|
return result;
|
||||||
|
|
Loading…
Reference in New Issue