aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/parsing/ParserBase.cpp
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-09-19 19:03:45 +0800
committerchriseth <chris@ethereum.org>2017-09-20 17:16:23 +0800
commit6948758156ba31b22fb74a3cd3e7cec0b925208b (patch)
treea90fc084482aca877539d1dd1c386897d54489a3 /libsolidity/parsing/ParserBase.cpp
parent3b813ed29569dde02b965c97c9fdd60469876f66 (diff)
downloaddexon-solidity-6948758156ba31b22fb74a3cd3e7cec0b925208b.tar.gz
dexon-solidity-6948758156ba31b22fb74a3cd3e7cec0b925208b.tar.zst
dexon-solidity-6948758156ba31b22fb74a3cd3e7cec0b925208b.zip
Limit parser recursion depth further (needed by increased assembly data structure size)
Diffstat (limited to 'libsolidity/parsing/ParserBase.cpp')
-rw-r--r--libsolidity/parsing/ParserBase.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsolidity/parsing/ParserBase.cpp b/libsolidity/parsing/ParserBase.cpp
index fe95b0fe..5b83c5bd 100644
--- a/libsolidity/parsing/ParserBase.cpp
+++ b/libsolidity/parsing/ParserBase.cpp
@@ -104,7 +104,7 @@ void ParserBase::expectToken(Token::Value _value)
void ParserBase::increaseRecursionDepth()
{
m_recursionDepth++;
- if (m_recursionDepth >= 3000)
+ if (m_recursionDepth >= 2560)
fatalParserError("Maximum recursion depth reached during parsing.");
}