summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorIlya Zakharevich <ilya@math.berkeley.edu>2001-05-02 07:35:50 -0700
committerJarkko Hietaniemi <jhi@iki.fi>2001-05-03 01:23:48 +0000
commit78c267c1fefa70a5151ef881f753b64ee0a3771e (patch)
tree496c014f906372177ec24694acc93a4b42575ce0 /toke.c
parent5e12dbfa1fc5fab9ffcdf3a398fa9f5c92327e0d (diff)
downloadperl-78c267c1fefa70a5151ef881f753b64ee0a3771e.tar.gz
Random input test and Perl
Message-Id: <200105022135.OAA26245@fac-813-1.math.Berkeley.EDU> p4raw-id: //depot/perl@9969
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/toke.c b/toke.c
index 773db3186a..39b4b249dc 100644
--- a/toke.c
+++ b/toke.c
@@ -2847,6 +2847,8 @@ Perl_yylex(pTHX)
s++;
if (s < d)
s++;
+ else if (s > d) /* Found by Ilya: feed random input to Perl. */
+ croak("panic: input overflow");
incline(s);
if (PL_lex_formbrack && PL_lex_brackets <= PL_lex_formbrack) {
PL_bufptr = s;