Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix buggy -DPERL_POISON code in S_rxres_free(), exposed by a recent t…
…est. The code had been buggily attempting to overwrite just-freed memory since PERL_POISON was added by commit 94010e7 in June 2005. However, no regression test exercised this code path until recently. Also fix the offset in the array of UVs used by PERL_OLD_COPY_ON_WRITE to store RX_SAVED_COPY(). It now uses p[2]. Previously it had used p[1], directly conflicting with the use of p[1] to store RX_NPARENS(). The code is too intertwined to meaningfully do these as separate commits.
- Loading branch information