Skip to content

Commit

Permalink
Fix some function lengths in the test suite (#45)
Browse files Browse the repository at this point in the history
These tests appear adapted with memory64 with overlong LEB-encodings but
when merged with the upstream spec test suite the function length is too
short. By ensuring the function length is correct it ensures that the
only error in the module is the overlong LEB encoding.
  • Loading branch information
alexcrichton authored Feb 22, 2024
1 parent b52270d commit bcf4834
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/core/binary.wast
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@
"\05\03\01\00\01" ;; Memory section
"\0a\17\01" ;; Code section
;; function 0
"\0f\01\01" ;; local type count
"\15\01\01" ;; local type count
"\7f" ;; i32
"\41\00" ;; i32.const 0
"\28" ;; i32.load
Expand Down Expand Up @@ -544,7 +544,7 @@
"\05\03\01\00\01" ;; Memory section
"\0a\16\01" ;; Code section
;; function 0
"\10\01\01" ;; local type count
"\14\01\01" ;; local type count
"\7f" ;; i32
"\41\00" ;; i32.const 0
"\41\03" ;; i32.const 3
Expand Down Expand Up @@ -624,7 +624,7 @@
"\05\03\01\00\01" ;; Memory section
"\0a\15\01" ;; Code section
;; function 0
"\0e\01\01" ;; local type count
"\13\01\01" ;; local type count
"\7f" ;; i32
"\41\00" ;; i32.const 0
"\28" ;; i32.load
Expand All @@ -643,7 +643,7 @@
"\05\03\01\00\01" ;; Memory section
"\0a\15\01" ;; Code section
;; function 0
"\0e\01\01" ;; local type count
"\13\01\01" ;; local type count
"\7f" ;; i32
"\41\00" ;; i32.const 0
"\28" ;; i32.load
Expand Down Expand Up @@ -737,7 +737,7 @@
"\05\03\01\00\01" ;; Memory section
"\0a\16\01" ;; Code section
;; function 0
"\0f\01\01" ;; local type count
"\14\01\01" ;; local type count
"\7f" ;; i32
"\41\00" ;; i32.const 0
"\41\03" ;; i32.const 3
Expand All @@ -757,7 +757,7 @@
"\0a\16\01" ;; Code section

;; function 0
"\0f\01\01" ;; local type count
"\14\01\01" ;; local type count
"\7f" ;; i32
"\41\00" ;; i32.const 0
"\41\03" ;; i32.const 3
Expand Down

0 comments on commit bcf4834

Please sign in to comment.