From 5b98e1896f16fc41d6a7b0d0c4ef0b7e1d72f420 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Wed, 1 Mar 2023 10:06:36 -0800 Subject: Fuzzer: Handle HostLimitException during instance creation (#5534) We handle this like the existing handling of TrapException: we skip running this module (since we can't even instantiate it, so there is nothing to run). --- src/tools/execution-results.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/tools/execution-results.h b/src/tools/execution-results.h index 569052086..17101e0ab 100644 --- a/src/tools/execution-results.h +++ b/src/tools/execution-results.h @@ -132,6 +132,8 @@ struct ExecutionResults { } } catch (const TrapException&) { // may throw in instance creation (init of offsets) + } catch (const HostLimitException&) { + // may throw in instance creation (e.g. array.new of huge size) } } @@ -221,6 +223,9 @@ struct ExecutionResults { } catch (const TrapException&) { // may throw in instance creation (init of offsets) return {}; + } catch (const HostLimitException&) { + // may throw in instance creation (e.g. array.new of huge size) + return {}; } } -- cgit v1.2.3