diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2008-04-15 08:36:48 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2008-04-15 08:36:48 +0000 |
commit | 5562fa714b8071354c365365c26a950efa73179a (patch) | |
tree | ac4dbe6be9df1c1efc95b89bb47efb41a28e5a12 /mg.c | |
parent | b3562f19ee0d76b60d176a0b1cfdac4f5f36785c (diff) | |
download | perl-5562fa714b8071354c365365c26a950efa73179a.tar.gz |
Fix for [perl #52074] Segfault on ISA push after symbol table delete
This restores the 5.8.8 behaviour. The deleted stash is not vivified
again, hence the hierarchy remains broken. But there's no segfault.
p4raw-id: //depot/perl@33684
Diffstat (limited to 'mg.c')
-rw-r--r-- | mg.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1607,7 +1607,8 @@ Perl_magic_setisa(pTHX_ SV *sv, MAGIC *mg) : (GV*)SvMAGIC(mg->mg_obj)->mg_obj ); - mro_isa_changed_in(stash); + if (stash) + mro_isa_changed_in(stash); return 0; } @@ -1632,7 +1633,8 @@ Perl_magic_clearisa(pTHX_ SV *sv, MAGIC *mg) : (GV*)SvMAGIC(mg->mg_obj)->mg_obj ); - mro_isa_changed_in(stash); + if (stash) + mro_isa_changed_in(stash); return 0; } |