Skip to content

Commit dca9f61

Browse files
committed
Actually fix GH #17370
I only added a test, but not the change in 9f16475. The test passes except when run under address sanitizer or valgrind.
1 parent da255c7 commit dca9f61

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
@@ -780,6 +780,9 @@ Perl_grok_infnan(pTHX_ const char** sp, const char* send)
780780
s++;
781781

782782
flags |= IS_NUMBER_NAN | IS_NUMBER_NOT_INT;
783+
if (s == send) {
784+
return flags;
785+
}
783786

784787
/* NaN can be followed by various stuff (NaNQ, NaNS), but
785788
* there are also multiple different NaN values, and some

0 commit comments

Comments
 (0)