diff options
author | Thomas Lively <tlively@google.com> | 2023-08-28 17:03:08 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-28 22:03:08 +0000 |
commit | 65eb4219396e32aa76fca59226f523b8dfe01bcb (patch) | |
tree | 1a1bdf59d0f2a3ee0b82bf39b3865243ac764538 /src | |
parent | 059893936ff1c44cf128b14a526fb7ed32a5f285 (diff) | |
download | binaryen-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.h | 4 |
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 |