aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-07-29 20:10:17 +0900
committernsfisis <nsfisis@gmail.com>2025-07-29 20:10:17 +0900
commit05724af3db760abe7fcd6a563423193b50bc744d (patch)
treeae28b873e8276d6663197425a252f801b1774804
parenta6889262c6f58124e4bed8e4f51024abc9a9e264 (diff)
downloadphp-waddiwasi-05724af3db760abe7fcd6a563423193b50bc744d.tar.gz
php-waddiwasi-05724af3db760abe7fcd6a563423193b50bc744d.tar.zst
php-waddiwasi-05724af3db760abe7fcd6a563423193b50bc744d.zip
fix: Make SkipStackGuardPageTest pass
-rw-r--r--BUGS1
-rw-r--r--phpunit.xml1
-rw-r--r--src/WebAssembly/BinaryFormat/Decoder.php2
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 @@
<file>tests/src/SpecTestsuites/Core/RefNullTest.php</file>
<file>tests/src/SpecTestsuites/Core/ReturnTest.php</file>
<file>tests/src/SpecTestsuites/Core/SelectTest.php</file>
+ <file>tests/src/SpecTestsuites/Core/SkipStackGuardPageTest.php</file>
<file>tests/src/SpecTestsuites/Core/StackTest.php</file>
<file>tests/src/SpecTestsuites/Core/StartTest.php</file>
<file>tests/src/SpecTestsuites/Core/StoreTest.php</file>
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();