mirror of
https://github.com/bdnugget/php-src.git
synced 2026-11-26 18:35:42 +00:00
fix range check related to #45877
This commit is contained in:
1 parent
d34f4454f0
commit
aee386bb30
1 file changed
+1
-1
+1
-1
@@ -319,7 +319,7 @@ END_EXTERN_C()
|
||||
if ((*end != '\0') /* not a null terminated string */ \
|
||||
|| (*tmp == '0' && length > 2) /* numbers with leading zeros */ \
|
||||
|| (end - tmp > MAX_LENGTH_OF_LONG - 1) /* number too long */ \
|
||||
|| (SIZEOF_LONG == 4 && \
|
||||
|| (SIZEOF_ZEND_INT == 4 && \
|
||||
end - tmp == MAX_LENGTH_OF_LONG - 1 && \
|
||||
*tmp > '2')) { /* overflow */ \
|
||||
break; \
|
||||
|
||||
Reference in new issue
Block a user