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.

(cherry picked from commit dca9f61)
  • Loading branch information
khwilliamson authored and steve-m-hay committed Feb 12, 2020
1 parent 55288d9 commit 818b850
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 @@ -765,6 +765,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 818b850

Please sign in to comment.