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