Commit 4912ffe7 authored by Erik Verbruggen's avatar Erik Verbruggen
Browse files

Temporary fix to prevent the parser from going too deep into recursion.

parent d3acff74
......@@ -4507,7 +4507,13 @@ bool Parser::parseConstantExpression(ExpressionAST *&node)
bool Parser::parseExpression(ExpressionAST *&node)
return parseCommaExpression(node);
if (depth > 100)
return false;
bool result = parseCommaExpression(node);
return result;
bool Parser::parseCommaExpression(ExpressionAST *&node)
......@@ -314,6 +314,8 @@ private:
bool _inFunctionBody: 1;
bool _inObjCImplementationContext: 1;
int depth;
std::map<unsigned, TemplateArgumentListEntry> _templateArgumentList;
class Rewind;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment