This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Assigning to DEFSV leaks if PL_defgv's gp_sv isn't set.
authorMarcus Holland-Moritz <mhx-perl@gmx.net>
Sat, 8 Nov 2008 12:38:36 +0000 (12:38 +0000)
committerMarcus Holland-Moritz <mhx-perl@gmx.net>
Sat, 8 Nov 2008 12:38:36 +0000 (12:38 +0000)
commit414bf5ae0886eb91e2f6dbb35893ddb012852bef
treef12b56f04e73f7a435907e3ad3b060d2a96975a4
parent2556f95e0f4f5e8e95c9766374614ab52edefe3d
Assigning to DEFSV leaks if PL_defgv's gp_sv isn't set.
As Nicholas already noted in a FIXME, assigning to DEFSV should
use GvSV instead of GvSVn. This change ensures that, at least
under -DPERL_CORE, DEFSV cannot be assigned to and introduces
a DEFSV_set macro to allow setting DEFSV.
This fixes #53038: map leaks memory.

p4raw-id: //depot/perl@34776
XSUB.h
ext/Filter/Util/Call/Call.pm
ext/Filter/Util/Call/Call.xs
perl.h
pp_ctl.c
pp_hot.c
regexec.c