Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: b91045c99b1bf34920bb033d7af8d4b2a1a82a20
      
https://github.com/WebKit/WebKit/commit/b91045c99b1bf34920bb033d7af8d4b2a1a82a20
  Author: Yusuke Suzuki <[email protected]>
  Date:   2026-08-04 (Tue, 04 Aug 2026)

  Changed paths:
    M JSTests/wasm/js-api/table64-js-api.js
    A JSTests/wasm/stress/table64-growable-import.js
    A JSTests/wasm/stress/table64-maximum.js
    M Source/JavaScriptCore/wasm/WasmFormat.h
    M Source/JavaScriptCore/wasm/js/JSWebAssemblyTable.cpp
    M Source/JavaScriptCore/wasm/js/JSWebAssemblyTable.h
    M Source/JavaScriptCore/wasm/js/WebAssemblyModuleConstructor.cpp
    M Source/JavaScriptCore/wasm/js/WebAssemblyModuleRecord.cpp

  Log Message:
  -----------
  [JSC] Do not truncate table64 maximum size to uint32_t
https://bugs.webkit.org/show_bug.cgi?id=321000
rdar://184038951

Reviewed by Keith Miller.

We are silently truncating the maximum value to
uint32_t. This patch
fixes it.

Test: JSTests/wasm/stress/table64-maximum.js

* JSTests/wasm/js-api/table64-js-api.js:
* JSTests/wasm/stress/table64-growable-import.js: Added.
(await.assert.throwsAsync.instantiate):
* JSTests/wasm/stress/table64-maximum.js: Added.
(string_appeared_here.funcref.func.export.string_appeared_here.result.i64.table.size.0.func.export.string_appeared_here.param.delta.i64.result.i64.ref.null.func.local.delta):
(assert.eq.instance.exports.grow):
* Source/JavaScriptCore/wasm/WasmFormat.h:
(JSC::Wasm::TableInformation::TableInformation):
(JSC::Wasm::TableInformation::maximum const):
* Source/JavaScriptCore/wasm/js/JSWebAssemblyTable.cpp:
(JSC::JSWebAssemblyTable::type):
* Source/JavaScriptCore/wasm/js/JSWebAssemblyTable.h:
* Source/JavaScriptCore/wasm/js/WebAssemblyModuleConstructor.cpp:
(JSC::createTypeReflectionObject):
*
Source/JavaScriptCore/wasm/js/WebAssemblyModuleRecord.cpp:
(JSC::WebAssemblyModuleRecord::initializeImports):

Canonical link: 
https://flagged.apple.com:443/proxy?t2=Dr0l5t6XM1&o=aHR0cHM6Ly9jb21taXRzLndlYmtpdC5vcmcvMzE4NTc1QG1haW4=&emid=286878b6-c3c4-44a5-b8f1-8fe0182aca51&c=11



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to