mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Limit parser recursion depth further (needed by increased assembly data structure size)
This commit is contained in:
parent
3b813ed295
commit
6948758156
@ -104,7 +104,7 @@ void ParserBase::expectToken(Token::Value _value)
|
|||||||
void ParserBase::increaseRecursionDepth()
|
void ParserBase::increaseRecursionDepth()
|
||||||
{
|
{
|
||||||
m_recursionDepth++;
|
m_recursionDepth++;
|
||||||
if (m_recursionDepth >= 3000)
|
if (m_recursionDepth >= 2560)
|
||||||
fatalParserError("Maximum recursion depth reached during parsing.");
|
fatalParserError("Maximum recursion depth reached during parsing.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user