From: Xinchen Hui Date: Wed, 12 Aug 2015 08:46:57 +0000 (+0800) Subject: Use the same error msg with resize X-Git-Tag: php-7.0.0RC1~7^2~57 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0f68f12d9592ba5b2c75619378c77955e7eec413;p=php Use the same error msg with resize --- diff --git a/Zend/zend_hash.c b/Zend/zend_hash.c index d010dff360..2347f99432 100644 --- a/Zend/zend_hash.c +++ b/Zend/zend_hash.c @@ -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)