From bcf4834fe72f1227eb2f1ec46c107f16fac94d9e Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Thu, 22 Feb 2024 13:32:25 -0600 Subject: [PATCH] Fix some function lengths in the test suite (#45) 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. --- test/core/binary.wast | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/core/binary.wast b/test/core/binary.wast index da550d716..fb2c6c4dc 100644 --- a/test/core/binary.wast +++ b/test/core/binary.wast @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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