mirror of
https://github.com/php/php-src.git
synced 2024-12-01 13:54:10 +08:00
Use the same error msg with resize
This commit is contained in:
parent
d75228e201
commit
0f68f12d95
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user