From: Nicholas Clark Date: Sun, 13 Jun 2010 07:50:00 +0000 (+0100) Subject: In pp_eof, ensure stack space for the second argument to the tied EOF method. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=2116934e2bf4f3c1445ea039e29ff377c3de2648;p=p5sagit%2Fp5-mst-13.2.git In pp_eof, ensure stack space for the second argument to the tied EOF method. Commit 32e653230c7ccc7f added this second argument, but didn't verify that the stack always had sufficient space for it. --- diff --git a/pp_sys.c b/pp_sys.c index 3525bfe..44b8cf4 100644 --- a/pp_sys.c +++ b/pp_sys.c @@ -2031,6 +2031,7 @@ PP(pp_eof) * 1 = eof(FH) * 2 = eof() <- ARGV magic */ + EXTEND(SP, 1); if (MAXARG) mPUSHi(1); /* 1 = eof(FH) - simple, explicit FH */ else if (PL_op->op_flags & OPf_SPECIAL)