From 5ffd609608e2a003d9a229e7cd0ba1f883c53ade Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Sat, 25 Mar 2017 17:38:40 -0600 Subject: toke.c: Rmv useless code This code is unreachable because the code above makes sure that the variable can't be larger than PL_bufend, and the code is only executed if it is larger. --- toke.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'toke.c') diff --git a/toke.c b/toke.c index d2a1ad2c21..bbfb6fb717 100644 --- a/toke.c +++ b/toke.c @@ -5607,10 +5607,6 @@ Perl_yylex(pTHX) d++; if (d < PL_bufend) d++; - else if (d > PL_bufend) - /* Found by Ilya: feed random input to Perl. */ - Perl_croak(aTHX_ "panic: input overflow, %p > %p", - d, PL_bufend); s = d; if (in_comment && d == PL_bufend && PL_lex_state == LEX_INTERPNORMAL @@ -5633,9 +5629,6 @@ Perl_yylex(pTHX) if (s < PL_bufend) incline(s); } - else if (s > PL_bufend) - /* Found by Ilya: feed random input to Perl. */ - Perl_croak(aTHX_ "panic: input overflow"); } goto retry; case '-': -- cgit v1.2.1