From f8775449c20592bfdccd51299a59f9c95391fd80 Mon Sep 17 00:00:00 2001 From: Bhargava Shastry Date: Thu, 25 Feb 2021 13:59:52 +0100 Subject: [PATCH] Catch yul stack too deep error. --- test/tools/fuzzer_common.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/tools/fuzzer_common.cpp b/test/tools/fuzzer_common.cpp index 066f4404c..06561347d 100644 --- a/test/tools/fuzzer_common.cpp +++ b/test/tools/fuzzer_common.cpp @@ -29,6 +29,8 @@ #include +#include + #include using namespace std; @@ -121,6 +123,11 @@ void FuzzerUtil::testCompiler( catch (StackTooDeepError const&) { } + // If _compileViaYul is true, the yul + // codegen may throw StackTooDeepError. + catch (yul::StackTooDeepError const&) + { + } } void FuzzerUtil::runCompiler(string const& _input, bool _quiet)