diff options
author | chriseth <chris@ethereum.org> | 2017-08-22 18:32:15 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2017-08-22 18:44:23 +0800 |
commit | 628b54ce351dd5de8ec34aa8c2c23f2fd0a77d90 (patch) | |
tree | 6f1887bf437553880963e3a7a8c9956f1e8a641d /libsolidity/parsing | |
parent | 692e4c57e83607f21d0c1b1b735585b3b63564f3 (diff) | |
download | dexon-solidity-628b54ce351dd5de8ec34aa8c2c23f2fd0a77d90.tar dexon-solidity-628b54ce351dd5de8ec34aa8c2c23f2fd0a77d90.tar.gz dexon-solidity-628b54ce351dd5de8ec34aa8c2c23f2fd0a77d90.tar.bz2 dexon-solidity-628b54ce351dd5de8ec34aa8c2c23f2fd0a77d90.tar.lz dexon-solidity-628b54ce351dd5de8ec34aa8c2c23f2fd0a77d90.tar.xz dexon-solidity-628b54ce351dd5de8ec34aa8c2c23f2fd0a77d90.tar.zst dexon-solidity-628b54ce351dd5de8ec34aa8c2c23f2fd0a77d90.zip |
Reduce max recursion depth.
Diffstat (limited to 'libsolidity/parsing')
-rw-r--r-- | libsolidity/parsing/ParserBase.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libsolidity/parsing/ParserBase.cpp b/libsolidity/parsing/ParserBase.cpp index db988739..fe95b0fe 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 >= 4096) + if (m_recursionDepth >= 3000) fatalParserError("Maximum recursion depth reached during parsing."); } |