File tree Expand file tree Collapse file tree 2 files changed +16
-18
lines changed Expand file tree Collapse file tree 2 files changed +16
-18
lines changed Original file line number Diff line number Diff line change 21
21
" \01\82\00 " ;; minimum 2
22
22
" \82\80\80\80\00 " ;; max 2
23
23
)
24
+ (module binary
25
+ " \00 asm" " \01\00\00\00 "
26
+ " \05\03\01 " ;; Memory section with 1 entry
27
+ " \00\00 " ;; no max, minimum 0
28
+ " \0b\06\01 " ;; Data section with 1 entry
29
+ " \00 " ;; Memory index 0
30
+ " \41\00\0b\00 " ;; (i32.const 0) with contents ""
31
+ )
24
32
(module binary
25
33
" \00 asm" " \01\00\00\00 "
26
34
" \05\03\01 " ;; Memory section with 1 entry
29
37
" \80\00 " ;; Memory index 0, encoded with 2 bytes
30
38
" \41\00\0b\00 " ;; (i32.const 0) with contents ""
31
39
)
40
+ (module binary
41
+ " \00 asm" " \01\00\00\00 "
42
+ " \04\04\01 " ;; Table section with 1 entry
43
+ " \70\00\00 " ;; no max, minimum 0, funcref
44
+ " \09\06\01 " ;; Element section with 1 entry
45
+ " \00 " ;; Table index 0
46
+ " \41\00\0b\00 " ;; (i32.const 0) with no elements
47
+ )
32
48
(module binary
33
49
" \00 asm" " \01\00\00\00 "
34
50
" \04\04\01 " ;; Table section with 1 entry
Original file line number Diff line number Diff line change 51
51
(assert_malformed (module binary " \00 asm" " \01\00\00\00 " " \81\00\01\00 " ) " malformed section id" )
52
52
(assert_malformed (module binary " \00 asm" " \01\00\00\00 " " \ff\00\01\00 " ) " malformed section id" )
53
53
54
- (module binary
55
- " \00 asm" " \01\00\00\00 "
56
- " \05\03\01 " ;; Memory section with 1 entry
57
- " \00\00 " ;; no max, minimum 0
58
- " \0b\06\01 " ;; Data section with 1 entry
59
- " \00 " ;; Memory index 0
60
- " \41\00\0b\00 " ;; (i32.const 0) with contents ""
61
- )
62
-
63
- (module binary
64
- " \00 asm" " \01\00\00\00 "
65
- " \04\04\01 " ;; Table section with 1 entry
66
- " \70\00\00 " ;; no max, minimum 0, funcref
67
- " \09\06\01 " ;; Element section with 1 entry
68
- " \00 " ;; Table index 0
69
- " \41\00\0b\00 " ;; (i32.const 0) with no elements
70
- )
71
-
72
54
;; Data segment tags and memory index can have non-minimal length
73
55
(module binary
74
56
" \00 asm" " \01\00\00\00 "
You can’t perform that action at this time.
0 commit comments