Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pp_hot.c - fix branch reset matches in list context #20741

Merged
merged 1 commit into from
Jan 27, 2023

Conversation

demerphq
Copy link
Collaborator

I am kinda surprised this issue was not picked up by one of our other test files. I would have expected one of the t/re/regexp.t based patches to validate list context matches populating the list properly. But apparently not! So when I fixed branch reset in fe5492d I missed the list context logic. This fixes the oversight. Thanks to Andreas Koenig for the BBC report on this.

pp_hot.c Outdated Show resolved Hide resolved
pp_hot.c Outdated Show resolved Hide resolved
pp_hot.c Outdated Show resolved Hide resolved
pp_hot.c Outdated Show resolved Hide resolved
@demerphq demerphq force-pushed the yves/fix_branch_reset_list_context_assignment branch from 75fb908 to 8748f64 Compare January 27, 2023 02:55
@demerphq demerphq requested a review from tonycoz January 27, 2023 02:56
@demerphq demerphq force-pushed the yves/fix_branch_reset_list_context_assignment branch 2 times, most recently from b18fb8a to efeaa82 Compare January 27, 2023 03:01
pp_hot.c Outdated Show resolved Hide resolved
pp_hot.c Outdated Show resolved Hide resolved
I am kinda surprised this issue was not picked up by one of our
other test files. I would have expected one of the t/re/regexp.t
based patches to validate list context matches populating the list
properly. But apparently not! So when I fixed branch reset in
fe5492d I missed the list context
logic. This fixes the oversight. Thanks to Andreas Koenig for the
BBC report on this.

This also changes the code to use SSize_t for various length related
operations, the original code was using I32 which might break on
very very long strings. Thanks to Tony C for pointing that out.
@demerphq demerphq force-pushed the yves/fix_branch_reset_list_context_assignment branch from efeaa82 to 31aab6e Compare January 27, 2023 11:17
@demerphq demerphq merged commit 7ede1e3 into blead Jan 27, 2023
@demerphq demerphq deleted the yves/fix_branch_reset_list_context_assignment branch January 27, 2023 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants