Re: com php-src: Use zend_string_safe_alloc: ext/gmp/gmp.c ext/standard/string.c ext/standard/var_unserializer.c ext/standard/var_unserializer.re
| From: | Stanislav Malyshev | Date: | Wed, 27 Apr 2016 07:24:08 +0000 |
| Subject: | Re: com php-src: Use zend_string_safe_alloc: ext/gmp/gmp.c ext/standard/string.c ext/standard/var_unserializer.c ext/standard/var_unserializer.re | ||
| References: | 1 2 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-91860@lists.php.net to get a copy of this message | ||
Hi!
> This looks odd. Shouldn't we fix zend_string_alloc to check for overflow,
> so this is covered for everything?
That was my initial proposal too, but Dmitry seems to be reluctant to do
that due to possible performance implications (we use zend_string_alloc
a lot, of course).
--
Stas Malyshev
smalyshev@gmail.com