Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: f44dcfd3c922c8cd80c66e0ebab94144ea3e4ac9
https://github.com/WebKit/WebKit/commit/f44dcfd3c922c8cd80c66e0ebab94144ea3e4ac9
Author: Kai Tamkun <[email protected]>
Date: 2026-05-11 (Mon, 11 May 2026)
Changed paths:
A JSTests/stress/yarr-interpreter-lookbehind-backreferences.js
M Source/JavaScriptCore/yarr/YarrInterpreter.cpp
Log Message:
-----------
Input Position Corruption in Yarr Backreference Backward Matching via
`tryReadBackward` Surrogate Pair Rewind
https://bugs.webkit.org/show_bug.cgi?id=312690
rdar://175122467
Reviewed by Yusuke Suzuki.
This patch fixes position corruption in certain Yarr interpreter
lookbehind cases by restoring the old position on match failure.
Thanks to Junyoung Park (@candymate) of KAIST Hacking Lab for the fix.
* JSTests/stress/yarr-interpreter-lookbehind-backreferences.js: Added.
* Source/JavaScriptCore/yarr/YarrInterpreter.cpp:
(JSC::Yarr::Interpreter::tryConsumeBackReference):
Canonical link: https://commits.webkit.org/313026@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications