Skip to content

Commit

Permalink
Actually fix GH #17370
Browse files Browse the repository at this point in the history
I only added a test, but not the change in
9f16475.  The test passes except when
run under address sanitizer or valgrind.
  • Loading branch information
khwilliamson committed Dec 17, 2019
1 parent da255c7 commit dca9f61
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions numeric.c
Original file line number Diff line number Diff line change
Expand Up @@ -780,6 +780,9 @@ Perl_grok_infnan(pTHX_ const char** sp, const char* send)
s++;

flags |= IS_NUMBER_NAN | IS_NUMBER_NOT_INT;
if (s == send) {
return flags;
}

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

0 comments on commit dca9f61

Please sign in to comment.