[Perl/perl5] af11b0: regexec.c - preserve COW-backed subbeg state acros...
[email protected] (Yves Orton via perl5-changes) Thu, 16 Jul 2026 01:51:44 -0700
| Newsgroups | perl.perl5.changes |
|---|---|
| Message-ID | <Perl/perl5/push/refs/heads/blead/[email protected]> |
Branch: refs/heads/blead
Home: https://github.com/Perl/perl5
Commit: af11b0c528200761891d46a7f6566aa880be45ca
https://github.com/Perl/perl5/commit/af11b0c528200761891d46a7f6566aa880be45ca
Author: Yves Orton <[email protected]>
Date: 2026-07-16 (Thu, 16 Jul 2026)
Changed paths:
M regexec.c
M regexp.h
M t/re/pat_re_eval.t
Log Message:
-----------
regexec.c - preserve COW-backed subbeg state across /(?{})/
Fix the capture-string save/restore bug when /(?{})/ temporarily
retargets RXp_SUBBEG to the current string. We must preserve both
heap-copied subbeg state and saved_copy-backed COW state so that cleanup
restores the original pointer values and ownership flags consistently.
Add regressions for the minimal cases discussed in GH #16952 and its
migrated RT ticket RT #134026, and for the later duplicate report
GH #24338: the stale capture case, the direct fetch of $&, and the
substitution form that used to assert on debugging builds.
To unsubscribe from these emails, change your notification settings at https://github.com/Perl/perl5/settings/notifications