[YARR] End subpattern index must be checked with -1#58906
Merged
webkit-commit-queue merged 1 commit intoWebKit:mainfrom Feb 18, 2026
Conversation
Collaborator
|
EWS run on previous version of this PR (hash 5fe6d81) Details
|
5fe6d81 to
d0c63be
Compare
Collaborator
|
EWS run on previous version of this PR (hash d0c63be) Details
|
d0c63be to
e7f9d68
Compare
Collaborator
|
EWS run on previous version of this PR (hash e7f9d68) Details
|
e7f9d68 to
c15754e
Compare
Collaborator
|
EWS run on previous version of this PR (hash c15754e) Details
|
c15754e to
d1186af
Compare
Collaborator
|
EWS run on previous version of this PR (hash d1186af) Details
|
d1186af to
0c15a0c
Compare
Collaborator
|
EWS run on current version of this PR (hash 0c15a0c) Details |
hyjorc1
approved these changes
Feb 18, 2026
0c15a0c to
8827cd8
Compare
https://bugs.webkit.org/show_bug.cgi?id=308112 rdar://170535154 Reviewed by Yijia Huang. As it is demonstrated in 306841@main, FixedCount parentheses clears both begin and end. And set begin index when it starts. And when it succeeds, end index is filled with the right value. So, if we would like to know whether the subpattern is active or not, we should look into end index side instead of begin index. We also clean up some initialization code for subpatterns and duplicate named groups. Test: JSTests/stress/yarr-jit-backreference-partially-captured-subpattern.js * JSTests/stress/yarr-jit-backreference-partially-captured-subpattern.js: Added. * Source/JavaScriptCore/yarr/YarrJIT.cpp: Canonical link: https://commits.webkit.org/307776@main
8827cd8 to
88bc2e3
Compare
Collaborator
|
Committed 307776@main (88bc2e3): https://commits.webkit.org/307776@main Reviewed commits have been landed. Closing PR #58906 and removing active labels. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🛠 ios-apple
88bc2e3
0c15a0c