Branch: refs/heads/yves/fix_16952
  Home:   https://github.com/Perl/perl5
  Commit: e3c998d29eb09073b4e55ed7fa79ceba1ed92602
      
https://github.com/Perl/perl5/commit/e3c998d29eb09073b4e55ed7fa79ceba1ed92602
  Author: Yves Orton <[email protected]>
  Date:   2026-07-03 (Fri, 03 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

Reply via email to