Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: a330a52f59a8827e50aa2cababb19946e95b89d5
      
https://github.com/WebKit/WebKit/commit/a330a52f59a8827e50aa2cababb19946e95b89d5
  Author: Michael Saboff <[email protected]>
  Date:   2024-04-30 (Tue, 30 Apr 2024)

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

  Log Message:
  -----------
  [JSC] ASSERTION FAILED: pos >= negativePositionOffest in char32_t 
JSC::Yarr::Interpreter<unsigned char>::InputStream::readChecked(unsigned int)
https://bugs.webkit.org/show_bug.cgi?id=273426
rdar://127013077

Reviewed by Keith Miller.

Added the same position version offest check to 
backtrackPatternCasedCharacter() that existed in backtrackPatternCharacter().
Also fixed the restoration of the offest for a negative lookbehind assertion.

Updated test.

* JSTests/stress/regexp-lookbehind.js:
* Source/JavaScriptCore/yarr/YarrInterpreter.cpp:
(JSC::Yarr::Interpreter::backtrackPatternCasedCharacter):
(JSC::Yarr::Interpreter::backtrackParentheticalAssertionBegin):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to