Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: f59e18069da6a713ae24f085a29d4759bc0a4b3f
      
https://github.com/WebKit/WebKit/commit/f59e18069da6a713ae24f085a29d4759bc0a4b3f
  Author: Michael Saboff <msab...@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


_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to