We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 899ce66 commit 49e87dcCopy full SHA for 49e87dc
test/core/binary.wast
@@ -470,6 +470,19 @@
470
"section size mismatch"
471
)
472
473
+;; Init expression with missing end marker
474
+(assert_malformed
475
+ (module binary
476
+ "\00asm" "\01\00\00\00"
477
+ "\01\04\01\60\00\00" ;; Type section: 1 type
478
+ "\03\02\01\00" ;; Function section: 1 function
479
+ "\06\05\01\7f\00\41\00" ;; Global section: 1 entry with missing end marker
480
+ ;; Missing end marker here
481
+ "\0a\04\01\02\00\0b" ;; Code section: 1 function
482
+ )
483
+ "illegal opcode"
484
+)
485
+
486
;; Unsigned LEB128 must not be overlong
487
(assert_malformed
488
(module binary
0 commit comments