From 05724af3db760abe7fcd6a563423193b50bc744d Mon Sep 17 00:00:00 2001 From: nsfisis Date: Tue, 29 Jul 2025 20:10:17 +0900 Subject: fix: Make SkipStackGuardPageTest pass --- BUGS | 1 - phpunit.xml | 1 + src/WebAssembly/BinaryFormat/Decoder.php | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/BUGS b/BUGS index e5730ad..9a7cde5 100644 --- a/BUGS +++ b/BUGS @@ -4,4 +4,3 @@ * ImportsTest * LinkingTest -* SkipStackGuardPageTest diff --git a/phpunit.xml b/phpunit.xml index defe6df..c2be1a0 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -79,6 +79,7 @@ tests/src/SpecTestsuites/Core/RefNullTest.php tests/src/SpecTestsuites/Core/ReturnTest.php tests/src/SpecTestsuites/Core/SelectTest.php + tests/src/SpecTestsuites/Core/SkipStackGuardPageTest.php tests/src/SpecTestsuites/Core/StackTest.php tests/src/SpecTestsuites/Core/StartTest.php tests/src/SpecTestsuites/Core/StoreTest.php diff --git a/src/WebAssembly/BinaryFormat/Decoder.php b/src/WebAssembly/BinaryFormat/Decoder.php index 65541e5..6ab39ff 100644 --- a/src/WebAssembly/BinaryFormat/Decoder.php +++ b/src/WebAssembly/BinaryFormat/Decoder.php @@ -613,7 +613,7 @@ final class Decoder { $count = $this->decodeU32(); // @todo Provide a way to configure the limit. - if (1024 < $count) { + if (1056 < $count) { throw new InvalidBinaryFormatException("too many local variables"); } $type = $this->decodeValType(); -- cgit v1.2.3-70-g09d2