Sophie

Sophie

distrib > Mageia > 1 > i586 > media > core-updates-src > by-pkgid > 5f5946e91cdf0dec287e96e997baa0a1 > files > 2

perl-5.12.3-4.2.mga1.src.rpm

Subject: Fix a segmentation fault occurring in the mod_perl2 test suite. (Closes: #475498)

Upstream change #33807 backported from blead.

[perl #52740]

---
 sv.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/sv.c b/sv.c
index 718e305..fe36438 100644
--- a/sv.c
+++ b/sv.c
@@ -3557,8 +3557,10 @@ Perl_sv_setsv_flags(pTHX_ SV *dstr, register SV *sstr, I32 flags)
 		GvMULTI_on(dstr);
 		return;
 	    }
-	    glob_assign_glob(dstr, sstr, dtype);
-	    return;
+	    if (isGV_with_GP(sstr)) {
+		glob_assign_glob(dstr, sstr, dtype);
+		return;
+	    }
 	}
 
 	if (dtype >= SVt_PV) {
-- 
tg: (71b2123..) fixes/local_symtab (depends on: upstream)