aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/WebAssembly/BinaryFormat/Decoder.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/WebAssembly/BinaryFormat/Decoder.php')
-rw-r--r--src/WebAssembly/BinaryFormat/Decoder.php2
1 files changed, 1 insertions, 1 deletions
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();