[php-src] PR #16938: Fix is_zend_ptr() huge block comparison
| From: | nielsdos | Date: | Mon, 25 Nov 2024 20:29:30 +0000 |
| Subject: | [php-src] PR #16938: Fix is_zend_ptr() huge block comparison | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-29758@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/16938
Author: nielsdos
We should compare the block memory, not the block metadata (See zend_mm_add_huge_block).
This caused random test failure for ext/ffi/tests/gh14626.phpt when the malloc() performed by the
FFI code lies close to the block metadata, and the size of the block is large enough.
This was reported by https://github.com/php/php-src/issues/16902#issuecomment-2498310452