Skip to content

Commit 65eb421

Browse files
authored
Fix standard reference type encoding (#5905)
This bug was found by fuzzing Binaryen and V8 together with the standard GC encodings enabled.
1 parent 0598939 commit 65eb421

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/wasm-binary.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,8 +407,8 @@ enum EncodedType {
407407
#else
408408
#endif
409409
#if STANDARD_GC_ENCODINGS
410-
nullable = -0x1c, // 0x64
411-
nonnullable = -0x1d, // 0x63
410+
nonnullable = -0x1c, // 0x64
411+
nullable = -0x1d, // 0x63
412412
#else
413413
nullable = -0x14, // 0x6c
414414
nonnullable = -0x15, // 0x6b

0 commit comments

Comments
 (0)