We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2e6241 commit bbd8607Copy full SHA for bbd8607
numeric.c
@@ -784,7 +784,7 @@ Perl_grok_infnan(pTHX_ const char** sp, const char* send)
784
s++; if (s == send || isALPHA_FOLD_NE(*s, 'Y')) return fail;
785
s++;
786
} else if (odh) {
787
- while (*s == '0') { /* 1.#INF00 */
+ while (s < send && *s == '0') { /* 1.#INF00 */
788
789
}
790
@@ -798,10 +798,10 @@ Perl_grok_infnan(pTHX_ const char** sp, const char* send)
798
else if (isALPHA_FOLD_EQ(*s, 'D') && odh) { /* 1.#IND */
799
800
flags |= IS_NUMBER_NAN | IS_NUMBER_NOT_INT;
801
- while (*s == '0') { /* 1.#IND00 */
+ while (s < send && *s == '0') { /* 1.#IND00 */
802
803
804
- if (*s) {
+ if (s < send && *s) {
805
flags |= IS_NUMBER_TRAILING;
806
807
} else
0 commit comments