From 5e613af62b466cb8a9a235a4ea64ace2e003aaa8 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Wed, 18 May 2022 14:22:16 -0700 Subject: Validator: Check features for ref.null's type (#4677) --- src/tools/fuzzing/fuzzing.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/tools/fuzzing/fuzzing.cpp') diff --git a/src/tools/fuzzing/fuzzing.cpp b/src/tools/fuzzing/fuzzing.cpp index 22006a6a1..01196540b 100644 --- a/src/tools/fuzzing/fuzzing.cpp +++ b/src/tools/fuzzing/fuzzing.cpp @@ -3045,6 +3045,8 @@ HeapType TranslateToFuzzReader::getSubType(HeapType type) { HeapType::data)); case HeapType::eq: // TODO: nontrivial types as well. + assert(wasm.features.hasReferenceTypes()); + assert(wasm.features.hasGC()); return pick(HeapType::eq, HeapType::i31, HeapType::data); case HeapType::i31: return HeapType::i31; -- cgit v1.2.3