Make -t BAREWORD extend the stack
authorFather Chrysostomos <sprout@cpan.org>
Thu, 29 Mar 2012 21:52:45 +0000 (14:52 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Mon, 21 May 2012 17:49:04 +0000 (10:49 -0700)
It appears always to have been this way.  It was writing past the end
of the stack.

pp_sys.c

index 9753763..14aa324 100644 (file)
--- a/pp_sys.c
+++ b/pp_sys.c
@@ -3277,6 +3277,7 @@ PP(pp_fttty)
     tryAMAGICftest_MG('t');
 
     if (PL_op->op_flags & OPf_REF)
+       EXTEND(SP,1),
        gv = cGVOP_gv;
     else {
       SV *tmpsv = TOPs;