mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
quickly fix newly introdued off-by-one
This commit is contained in:
parent
c6a957e012
commit
e261d310a0
@ -718,7 +718,7 @@ _php_math_basetozval(zval *arg, int base, zval *ret) {
|
||||
|
||||
s = Z_STRVAL_P(arg);
|
||||
|
||||
for (i = Z_STRLEN_P(arg); i >= 0; i--) {
|
||||
for (i = Z_STRLEN_P(arg); i > 0; i--) {
|
||||
c = *s++;
|
||||
|
||||
digit = (c >= '0' && c <= '9') ? c - '0'
|
||||
|
Loading…
Reference in New Issue
Block a user