[webkit-changes] [WebKit/WebKit] f59e18: [JSC] Assertion in JSC::Yarr::Interpreter<unsigned...

Michael Saboff noreply at github.com
Thu Dec 14 07:53:58 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: f59e18069da6a713ae24f085a29d4759bc0a4b3f
      https://github.com/WebKit/WebKit/commit/f59e18069da6a713ae24f085a29d4759bc0a4b3f
  Author: Michael Saboff <msaboff at apple.com>
  Date:   2023-12-14 (Thu, 14 Dec 2023)

  Changed paths:
    M JSTests/stress/regexp-lookbehind.js
    M Source/JavaScriptCore/yarr/YarrInterpreter.cpp

  Log Message:
  -----------
  [JSC] Assertion in JSC::Yarr::Interpreter<unsigned char>::InputStream::uncheckInput called from backtrackPatternCasedCharacter
https://bugs.webkit.org/show_bug.cgi?id=266373
rdar://119187095

Reviewed by Justin Michaud.

When backtracking a lookbehind atom to its starting position we need to set the input pointer to the starting position.
All other character based atoms had this right, except backtrackPatternCasedCharacter().

* JSTests/stress/regexp-lookbehind.js: Added a new test case.
* Source/JavaScriptCore/yarr/YarrInterpreter.cpp:
(JSC::Yarr::Interpreter::backtrackPatternCasedCharacter):

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




More information about the webkit-changes mailing list