summaryrefslogtreecommitdiff
path: root/src/tools/fuzzing/fuzzing.cpp
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2022-05-18 14:22:16 -0700
committerGitHub <noreply@github.com>2022-05-18 14:22:16 -0700
commit5e613af62b466cb8a9a235a4ea64ace2e003aaa8 (patch)
tree91f00ab77ec91bc1defe05264afb7d6277f9d616 /src/tools/fuzzing/fuzzing.cpp
parent12f59507ee65b29ce08f37089594f752f846af9d (diff)
downloadbinaryen-5e613af62b466cb8a9a235a4ea64ace2e003aaa8.tar.gz
binaryen-5e613af62b466cb8a9a235a4ea64ace2e003aaa8.tar.bz2
binaryen-5e613af62b466cb8a9a235a4ea64ace2e003aaa8.zip
Validator: Check features for ref.null's type (#4677)
Diffstat (limited to 'src/tools/fuzzing/fuzzing.cpp')
-rw-r--r--src/tools/fuzzing/fuzzing.cpp2
1 files changed, 2 insertions, 0 deletions
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;