diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-07-29 20:10:17 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-07-29 20:10:17 +0900 |
| commit | 05724af3db760abe7fcd6a563423193b50bc744d (patch) | |
| tree | ae28b873e8276d6663197425a252f801b1774804 | |
| parent | a6889262c6f58124e4bed8e4f51024abc9a9e264 (diff) | |
| download | php-waddiwasi-05724af3db760abe7fcd6a563423193b50bc744d.tar.gz php-waddiwasi-05724af3db760abe7fcd6a563423193b50bc744d.tar.zst php-waddiwasi-05724af3db760abe7fcd6a563423193b50bc744d.zip | |
fix: Make SkipStackGuardPageTest pass
| -rw-r--r-- | BUGS | 1 | ||||
| -rw-r--r-- | phpunit.xml | 1 | ||||
| -rw-r--r-- | src/WebAssembly/BinaryFormat/Decoder.php | 2 |
3 files changed, 2 insertions, 2 deletions
@@ -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(); |
