Skip to content

Commit 5ffd609

Browse files
committed
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.
1 parent 76dafe0 commit 5ffd609

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

toke.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5607,10 +5607,6 @@ Perl_yylex(pTHX)
56075607
d++;
56085608
if (d < PL_bufend)
56095609
d++;
5610-
else if (d > PL_bufend)
5611-
/* Found by Ilya: feed random input to Perl. */
5612-
Perl_croak(aTHX_ "panic: input overflow, %p > %p",
5613-
d, PL_bufend);
56145610
s = d;
56155611
if (in_comment && d == PL_bufend
56165612
&& PL_lex_state == LEX_INTERPNORMAL
@@ -5633,9 +5629,6 @@ Perl_yylex(pTHX)
56335629
if (s < PL_bufend)
56345630
incline(s);
56355631
}
5636-
else if (s > PL_bufend)
5637-
/* Found by Ilya: feed random input to Perl. */
5638-
Perl_croak(aTHX_ "panic: input overflow");
56395632
}
56405633
goto retry;
56415634
case '-':

0 commit comments

Comments
 (0)