From 820a9c29c1e5ba543ffecf8e9b14d9093b549ba9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 23 May 2020 11:43:30 +0200 Subject: [PATCH] ExprEngine: Return instead of Throw to continue analysis more --- lib/exprengine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/exprengine.cpp b/lib/exprengine.cpp index 25e746c98..cc102f8f1 100644 --- a/lib/exprengine.cpp +++ b/lib/exprengine.cpp @@ -1791,7 +1791,7 @@ static void execute(const Token *start, const Token *end, Data &data, int recurs { if (++recursion > 20) // FIXME - throw VerifyException(start, "ExprEngine: Max recursion limit exceeded"); + return; for (const Token *tok = start; tok != end; tok = tok->next()) { if (Token::Match(tok, "[;{}]"))