summaryrefslogtreecommitdiff
path: root/pp_sys.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2010-06-13 08:50:00 +0100
committerNicholas Clark <nick@ccl4.org>2010-06-13 08:50:00 +0100
commit2116934e2bf4f3c1445ea039e29ff377c3de2648 (patch)
treeaff104836d89394bf79dca7494a751e1c5fcfcd1 /pp_sys.c
parentb0c1862166fbc7bf02b768bf81c9e1e77b5220a8 (diff)
downloadperl-2116934e2bf4f3c1445ea039e29ff377c3de2648.tar.gz
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.
Diffstat (limited to 'pp_sys.c')
-rw-r--r--pp_sys.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pp_sys.c b/pp_sys.c
index 3525bfe33b..44b8cf4ee3 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)