File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 231
231
(table (import " Mt" " tab" ) 10 funcref )
232
232
(func $f (result i32 ) (i32.const 0 ))
233
233
(elem (i32.const 7 ) $f )
234
- (elem (i32.const 12 ) $f ) ;; out of bounds
234
+ (elem (i32.const 8 ) $f $f $f $f $f ) ;; (partially) out of bounds
235
235
)
236
236
" out of bounds"
237
237
)
238
238
(assert_return (invoke $Mt " call" (i32.const 7 )) (i32.const 0 ))
239
+ (assert_trap (invoke $Mt " call" (i32.const 8 )) " uninitialized" )
239
240
240
241
(assert_trap
241
242
(module
337
338
;; after the instantiation failure.
338
339
(assert_trap
339
340
(module
341
+ ;; Note: the memory is 5 pages large by the time we get here.
340
342
(memory (import " Mm" " mem" ) 1 )
341
343
(data (i32.const 0 ) " abc" )
342
- (data (i32.const 0x50000 ) " d " ) ;; out of bounds
344
+ (data (i32.const 327670 ) " zzzzzzzzzzzzzzzzzz " ) ;; (partially) out of bounds
343
345
)
344
346
" out of bounds"
345
347
)
346
348
(assert_return (invoke $Mm " load" (i32.const 0 )) (i32.const 97 ))
349
+ (assert_return (invoke $Mm " load" (i32.const 327670 )) (i32.const 0 ))
347
350
348
351
(assert_trap
349
352
(module
You can’t perform that action at this time.
0 commit comments