[perl #113060] Save cop_stashlen threaded even with shared cop pv
authorReini Urban <rurban@x-ray.at>
Tue, 29 May 2012 20:46:13 +0000 (15:46 -0500)
committerRicardo Signes <rjbs@cpan.org>
Mon, 25 Jun 2012 23:46:22 +0000 (19:46 -0400)
commitd6f272d0b5888beecd8cdd3904b8449f1268e0ba
tree28cdba20f059261349bf3112cc353f4b0288bcf1
parent03aabc68d834a98dfee9006e55712717cc32584f
[perl #113060] Save cop_stashlen threaded even with shared cop pv

Perl_sv_compile_2op_is_broken() does at line 3354 a LEAVE_with_name("eval"),
a SSPOPSTR via SAVEt_SHARED_PVREF for the localized cop_stashpv, but
not for the cop_stashlen.
The cop in question is PL_compiling, which was "AutoSplit" before with
len=9 and restores it back to "main" but keeps len 9. Thus leading to a
heap-overflow in gv_stashpvn.
scope.h