1
0
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:
Xinchen Hui
2015-08-12 16:46:57 +08:00
parent d75228e201
commit 0f68f12d95

View File

@@ -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)