[webkit-changes] [WebKit/WebKit] bc6946: [JSC] Add missing exception check for WebAssembly....

Yusuke Suzuki noreply at github.com
Mon Mar 6 13:40:43 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: bc694648f3d7bfd0902ba2d52be68c534c82b531
      https://github.com/WebKit/WebKit/commit/bc694648f3d7bfd0902ba2d52be68c534c82b531
  Author: Yusuke Suzuki <ysuzuki at apple.com>
  Date:   2023-03-06 (Mon, 06 Mar 2023)

  Changed paths:
    A JSTests/wasm/stress/wasm-tag-constructor-exception.js
    M Source/JavaScriptCore/wasm/js/WebAssemblyTagConstructor.cpp

  Log Message:
  -----------
  [JSC] Add missing exception check for WebAssembly.Tag constructor
https://bugs.webkit.org/show_bug.cgi?id=252476
rdar://105593697

Reviewed by Justin Michaud.

Add a missing check. This causes crash with deterministic nullptr dereference (so, not a security issue).

* JSTests/wasm/stress/wasm-tag-constructor-exception.js: Added.
(f3):
* Source/JavaScriptCore/wasm/js/WebAssemblyTagConstructor.cpp:
(JSC::JSC_DEFINE_HOST_FUNCTION):

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




More information about the webkit-changes mailing list