[webkit-changes] [WebKit/WebKit] 1ab331: [JSC] Yarr Bytecode Compiler should check input gr...

Yusuke Suzuki noreply at github.com
Tue Jan 14 13:36:51 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 1ab331e390e3221bbb0a0ff00b0092c9092d77ff
      https://github.com/WebKit/WebKit/commit/1ab331e390e3221bbb0a0ff00b0092c9092d77ff
  Author: Yusuke Suzuki <ysuzuki at apple.com>
  Date:   2025-01-14 (Tue, 14 Jan 2025)

  Changed paths:
    A JSTests/stress/regexp-exceeds-string-length-limits.js
    M Source/JavaScriptCore/yarr/YarrInterpreter.cpp

  Log Message:
  -----------
  [JSC] Yarr Bytecode Compiler should check input gracefully
https://bugs.webkit.org/show_bug.cgi?id=285932
rdar://142475240

Reviewed by Yijia Huang.

Instead of just crashing explicitly, we should gracefully throw an error
for too-large-offset in Yarr Bytecode Compiler.

* JSTests/stress/regexp-exceeds-string-length-limits.js: Added.
* Source/JavaScriptCore/yarr/YarrInterpreter.cpp:
(JSC::Yarr::ByteCompiler::emitDisjunction):

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



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


More information about the webkit-changes mailing list