commit 4ffa205cca52b7c040a251578b963f260bca1a50
parent 1a3b0fc91e28806351f744d95a8701465c81947e
Author: Julien Pages <jpages@mozilla.com>
Date: Mon, 20 Oct 2025 18:52:23 +0000
Bug 1990202 - wasm: Remove the size limit for name imports. r=rhunt
Differential Revision: https://phabricator.services.mozilla.com/D269199
Diffstat:
2 files changed, 0 insertions(+), 5 deletions(-)
diff --git a/js/src/wasm/WasmConstants.h b/js/src/wasm/WasmConstants.h
@@ -1164,7 +1164,6 @@ static const unsigned MaxResults = 1000;
static const unsigned MaxStructFields = 10000;
static const uint64_t MaxMemory32PagesValidation = uint64_t(1) << 16;
static const uint64_t MaxMemory64PagesValidation = (uint64_t(1) << 37) - 1;
-static const unsigned MaxStringBytes = 100000;
static const unsigned MaxModuleBytes = 1024 * 1024 * 1024;
static const unsigned MaxFunctionBytes = 7654321;
static const unsigned MaxArrayNewFixedElements = 10000;
diff --git a/js/src/wasm/WasmValidate.cpp b/js/src/wasm/WasmValidate.cpp
@@ -2747,10 +2747,6 @@ static bool DecodeTypeSection(Decoder& d, CodeMetadata* codeMeta) {
return false;
}
- if (numBytes > MaxStringBytes) {
- return false;
- }
-
const uint8_t* bytes;
if (!d.readBytes(numBytes, &bytes)) {
return false;