Skip to content

Commit ad20550

Browse files
committed
gh security #129
1 parent 09d6b50 commit ad20550

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

numeric.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -791,6 +791,9 @@ Perl_grok_infnan(pTHX_ const char** sp, const char* send)
791791
/* "nanq" or "nans" are ok, though generating
792792
* these portably is tricky. */
793793
s++;
794+
if (s == send) {
795+
return flags;
796+
}
794797
}
795798
if (*s == '(') {
796799
/* C99 style "nan(123)" or Perlish equivalent "nan($uv)". */

0 commit comments

Comments
 (0)