mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Reduce max recursion depth.
This commit is contained in:
parent
692e4c57e8
commit
628b54ce35
@ -104,7 +104,7 @@ void ParserBase::expectToken(Token::Value _value)
|
|||||||
void ParserBase::increaseRecursionDepth()
|
void ParserBase::increaseRecursionDepth()
|
||||||
{
|
{
|
||||||
m_recursionDepth++;
|
m_recursionDepth++;
|
||||||
if (m_recursionDepth >= 4096)
|
if (m_recursionDepth >= 3000)
|
||||||
fatalParserError("Maximum recursion depth reached during parsing.");
|
fatalParserError("Maximum recursion depth reached during parsing.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user