Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 3e5413522e4c86bc53e117891ad9635b428cf454
      
https://github.com/WebKit/WebKit/commit/3e5413522e4c86bc53e117891ad9635b428cf454
  Author: Shu-yu Guo <[email protected]>
  Date:   2026-03-02 (Mon, 02 Mar 2026)

  Changed paths:
    A JSTests/wasm/js-api/too-many-elem-entries.js
    M Source/JavaScriptCore/wasm/WasmLimits.h
    M Source/JavaScriptCore/wasm/WasmSectionParser.cpp

  Log Message:
  -----------
  [JSC] Limit element entry count to 10,000,000 per spec
https://bugs.webkit.org/show_bug.cgi?id=308792
rdar://problem/171324747

Reviewed by Yusuke Suzuki.

For better interop, respect the limit for elem entry count per
https://webassembly.github.io/spec/js-api/#limits:

  The maximum number of table entries in any table initialization is 10,000,000

Test: JSTests/wasm/js-api/too-many-elem-entries.js
* JSTests/wasm/js-api/too-many-elem-entries.js: Added.
(testElemSegmentLimit):
* Source/JavaScriptCore/wasm/WasmLimits.h:
* Source/JavaScriptCore/wasm/WasmSectionParser.cpp:
(JSC::Wasm::SectionParser::parseIndexCountForElementSection):

Canonical link: https://commits.webkit.org/308473@main



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

Reply via email to