Fixed crash in harfbuzz found by daca@home

This commit is contained in:
Daniel Marjamäki 2019-11-12 18:21:54 +01:00
parent 9e0ae11ca2
commit 49d6bfbd7b
1 changed files with 1 additions and 1 deletions

View File

@ -1653,7 +1653,7 @@ struct FwdAnalysis::Result FwdAnalysis::checkRecursive(const Token *expr, const
if (result.type != Result::Type::NONE)
return result;
} 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);
if (result.type != Result::Type::NONE)
return result;