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 4d6e4b1 commit 7212ba3Copy full SHA for 7212ba3
ext/bcmath/libbcmath/src/str2num.c
@@ -69,7 +69,7 @@ bool bc_str2num(bc_num *num, char *str, size_t scale, bool auto_scale)
69
/* decimal point */
70
decimal_point = (*ptr == '.') ? ptr : NULL;
71
72
- /* If a string other than numbers exists */
+ /* If a non-digit and non-decimal-point indicator is in the string, i.e. an invalid character */
73
if (!decimal_point && *ptr != '\0') {
74
goto fail;
75
}
0 commit comments