Firefox · SpiderMonkey
CVE-2025-1933
Logic Error in SpiderMonkey
Overview
High
Severity
—
CVSS
No
Exploited ITW
Fixed
Fix Status
Files Changed
js/src/wasm/WasmStubs.cpp
Patch
diff --git a/js/src/wasm/WasmStubs.cpp b/js/src/wasm/WasmStubs.cpp
index a7e101bd5b3..8d821c40452 100644
--- a/js/src/wasm/WasmStubs.cpp
+++ b/js/src/wasm/WasmStubs.cpp
@@ -1241,7 +1241,9 @@ static bool GenerateJitEntry(MacroAssembler& masm, size_t funcExportIndex,
switch (results[0].kind()) {
case ValType::I32:
GenPrintIsize(DebugChannel::Function, masm, ReturnReg);
- // No widening is required, as the value is boxed.
+#ifdef JS_64BIT
+ masm.widenInt32(ReturnReg);
+#endif
masm.boxNonDouble(JSVAL_TYPE_INT32, ReturnReg, JSReturnOperand);
break;
case ValType::F32: {
Loading diff…
References
On This Page