From ad8184f060df00747248afdaec337d802bbf298f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 26 Dec 2009 08:37:07 +0100 Subject: [PATCH] Fixed #1152 (Hang/Slow: ExecutionPath handling hangs) --- lib/executionpath.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/executionpath.cpp b/lib/executionpath.cpp index 71363fdec..42fad0234 100644 --- a/lib/executionpath.cpp +++ b/lib/executionpath.cpp @@ -98,7 +98,7 @@ static const Token *checkExecutionPaths_(const Token *tok, std::listnext(); // parse condition - if (check->parseCondition(*tok->next(), checks)) + if (checks.size() > 10 || check->parseCondition(*tok->next(), checks)) { while (!checks.empty()) {