mirror of
https://github.com/php/php-src.git
synced 2026-04-09 17:13:31 +02:00
Use the same error msg with resize
This commit is contained in:
@@ -100,7 +100,7 @@ static uint32_t zend_always_inline zend_hash_check_size(uint32_t nSize)
|
||||
if (nSize < HT_MIN_SIZE) {
|
||||
nSize = HT_MIN_SIZE;
|
||||
} else if (UNEXPECTED(nSize >= HT_MAX_SIZE)) {
|
||||
zend_error_noreturn(E_ERROR, "Array size is too big", nSize);
|
||||
zend_error_noreturn(E_ERROR, "Possible integer overflow in memory allocation (%zu * %zu + %zu)", nSize, sizeof(Bucket), sizeof(Bucket));
|
||||
}
|
||||
|
||||
#if defined(ZEND_WIN32)
|
||||
|
||||
Reference in New Issue
Block a user