Projects
home:rottame:vhosts-ng:php80
php8
php8-CVE-2025-14178.patch
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File php8-CVE-2025-14178.patch of Package php8
Index: php-8.0.30/ext/standard/array.c =================================================================== --- php-8.0.30.orig/ext/standard/array.c +++ php-8.0.30/ext/standard/array.c @@ -3798,7 +3798,7 @@ static zend_always_inline void php_array int argc, i; zval *src_entry; HashTable *src, *dest; - uint32_t count = 0; + uint64_t count = 0; ZEND_PARSE_PARAMETERS_START(0, -1) Z_PARAM_VARIADIC('+', args, argc) @@ -3818,6 +3818,11 @@ static zend_always_inline void php_array count += zend_hash_num_elements(Z_ARRVAL_P(arg)); } + if (UNEXPECTED(count >= HT_MAX_SIZE)) { + zend_throw_error(NULL, "The total number of elements must be lower than %u", HT_MAX_SIZE); + RETURN_THROWS(); + } + if (argc == 2) { zval *ret = NULL;
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.