summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas Lively <tlively@google.com>2023-08-28 17:03:08 -0500
committerGitHub <noreply@github.com>2023-08-28 22:03:08 +0000
commit65eb4219396e32aa76fca59226f523b8dfe01bcb (patch)
tree1a1bdf59d0f2a3ee0b82bf39b3865243ac764538 /src
parent059893936ff1c44cf128b14a526fb7ed32a5f285 (diff)
downloadbinaryen-65eb4219396e32aa76fca59226f523b8dfe01bcb.tar.gz
binaryen-65eb4219396e32aa76fca59226f523b8dfe01bcb.tar.bz2
binaryen-65eb4219396e32aa76fca59226f523b8dfe01bcb.zip
Fix standard reference type encoding (#5905)
This bug was found by fuzzing Binaryen and V8 together with the standard GC encodings enabled.
Diffstat (limited to 'src')
-rw-r--r--src/wasm-binary.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wasm-binary.h b/src/wasm-binary.h
index bbe6cc89a..a384d2cd5 100644
--- a/src/wasm-binary.h
+++ b/src/wasm-binary.h
@@ -407,8 +407,8 @@ enum EncodedType {
#else
#endif
#if STANDARD_GC_ENCODINGS
- nullable = -0x1c, // 0x64
- nonnullable = -0x1d, // 0x63
+ nonnullable = -0x1c, // 0x64
+ nullable = -0x1d, // 0x63
#else
nullable = -0x14, // 0x6c
nonnullable = -0x15, // 0x6b