Fix edge cases in pp_getc and pp_tell where the stack extent was not checked.
authorNicholas Clark <nick@ccl4.org>
Sat, 12 Jun 2010 19:43:37 +0000 (20:43 +0100)
committerNicholas Clark <nick@ccl4.org>
Sat, 12 Jun 2010 19:43:37 +0000 (20:43 +0100)
commitac3697cd90b00fae88e4f19931af920bc552e2b8
tree869f1a9ead069290e6fe0c5eb90a989bcfe7e7ba
parent0f7807cda10b798e3d16820699b3a52f13a8de16
Fix edge cases in pp_getc and pp_tell where the stack extent was not checked.

Both conditionally POP a GV from the stack, but always PUSH a return value to
it. For the case where they did not POP the GV, they made no check that the
stack had space for the PUSH. This bug has been present since perl 5.000.
pp_sys.c