Skip to content

Commit

Permalink
[test] Fix invalid section ID tests (WebAssembly#1615)
Browse files Browse the repository at this point in the history
  • Loading branch information
aheejin authored and rossberg committed Mar 1, 2023
1 parent 28846ac commit be3dc78
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 18.x
node-version: 19.x
- run: cd interpreter && opam exec make JS=node all

ref-interpreter-js-library:
Expand Down
10 changes: 5 additions & 5 deletions test/core/binary.wast
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@
(assert_malformed (module binary "\00asm\00\00\00\01") "unknown binary version")

;; Invalid section id.
(assert_malformed (module binary "\00asm" "\01\00\00\00" "\0d\00") "malformed section id")
(assert_malformed (module binary "\00asm" "\01\00\00\00" "\7f\00") "malformed section id")
(assert_malformed (module binary "\00asm" "\01\00\00\00" "\80\00\01\00") "malformed section id")
(assert_malformed (module binary "\00asm" "\01\00\00\00" "\81\00\01\00") "malformed section id")
(assert_malformed (module binary "\00asm" "\01\00\00\00" "\ff\00\01\00") "malformed section id")
(assert_malformed (module binary "\00asm" "\01\00\00\00" "\0e\01\00") "malformed section id")
(assert_malformed (module binary "\00asm" "\01\00\00\00" "\7f\01\00") "malformed section id")
(assert_malformed (module binary "\00asm" "\01\00\00\00" "\80\01\00\01\01\00") "malformed section id")
(assert_malformed (module binary "\00asm" "\01\00\00\00" "\81\01\00\01\01\00") "malformed section id")
(assert_malformed (module binary "\00asm" "\01\00\00\00" "\ff\01\00\01\01\00") "malformed section id")

;; Unsigned LEB128 can have non-minimal length
(module binary
Expand Down

0 comments on commit be3dc78

Please sign in to comment.