[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)
committerFather Chrysostomos <sprout@cpan.org>
Sat, 23 Jun 2012 05:24:50 +0000 (22:24 -0700)
commitd828bad9a3194890e274f06525bf053614b4831b
treec462a24630df945013b92e271732a5ac08ace70e
parentbbf5974c677f8f57671e2b54c2e756597ead21f9
[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