Skip to content

Commit

Permalink
Add a couple more out-of-bounds data segment cases
Browse files Browse the repository at this point in the history
  • Loading branch information
fitzgen committed Sep 28, 2024
1 parent f713000 commit 4c10619
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/core/gc/array_new_data.wast
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
;; Out-of-bounds data segment accesses.
(assert_trap (invoke "array-new-data" (i32.const 0) (i32.const 5)) "out of bounds memory access")
(assert_trap (invoke "array-new-data" (i32.const 5) (i32.const 0)) "out of bounds memory access")
(assert_trap (invoke "array-new-data" (i32.const 1) (i32.const 4)) "out of bounds memory access")
(assert_trap (invoke "array-new-data" (i32.const 4) (i32.const 1)) "out of bounds memory access")


(module
(type $arr (array (mut i8)))
Expand Down

0 comments on commit 4c10619

Please sign in to comment.