[php-src] PR #11856: Add block size support for tracked_malloc
| From: | iluuu1994 | Date: | Wed, 02 Aug 2023 13:05:18 +0000 |
| Subject: | [php-src] PR #11856: Add block size support for tracked_malloc | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-23242@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/11856
Author: iluuu1994
This does still deviate from USE_ZEND_ALLOC=0 in that we're not rounding up the size of the
allocation to fixed sizes. Doing so would suppress some out-of-bounds errors checked by ASAN.
Rounding up the size in _zend_mm_block_size would not be good either as it would break code like
memset(ptr, 0 _zend_mm_block_size(ptr)).
See https://github.com/php/php-src/pull/11758#issuecomment-1661925854.