summaryrefslogtreecommitdiff
path: root/lang/perl5.14/files/patch-bug52740
diff options
context:
space:
mode:
Diffstat (limited to 'lang/perl5.14/files/patch-bug52740')
-rw-r--r--lang/perl5.14/files/patch-bug5274015
1 files changed, 15 insertions, 0 deletions
diff --git a/lang/perl5.14/files/patch-bug52740 b/lang/perl5.14/files/patch-bug52740
new file mode 100644
index 000000000000..08a73a1547ee
--- /dev/null
+++ b/lang/perl5.14/files/patch-bug52740
@@ -0,0 +1,15 @@
+# http://rt.perl.org/rt3/Public/Bug/Display.html?id=52740
+# http://perl5.git.perl.org/perl.git/commitdiff/785bee4f7cf89837cba8e6e0859abbb4b407e1f1?hp=90e91dd8c9549b16c38f6ab2e9fa25c7ea28dff8
+diff --git a/sv.c b/sv.c
+index f721e6f..5fcf018 100644
+--- sv.c
++++ sv.c
+@@ -3717,7 +3717,7 @@ Perl_sv_setsv_flags(pTHX_ SV *dstr, register SV* sstr, const I32 flags)
+ Perl_croak(aTHX_ "Cannot copy to %s", type);
+ } else if (sflags & SVf_ROK) {
+ if (isGV_with_GP(dstr) && dtype == SVt_PVGV
+- && SvTYPE(SvRV(sstr)) == SVt_PVGV) {
++ && SvTYPE(SvRV(sstr)) == SVt_PVGV && isGV_with_GP(SvRV(sstr))) {
+ sstr = SvRV(sstr);
+ if (sstr == dstr) {
+ if (GvIMPORTED(dstr) != GVf_IMPORTED