mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Merge branch 'PHP-8.4'
* PHP-8.4: Fix is_zend_ptr() huge block comparison
This commit is contained in:
commit
cef23c4853
1 changed files with 2 additions and 2 deletions
|
@ -2617,8 +2617,8 @@ ZEND_API bool is_zend_ptr(const void *ptr)
|
|||
|
||||
zend_mm_huge_list *block = AG(mm_heap)->huge_list;
|
||||
while (block) {
|
||||
if (ptr >= (void*)block
|
||||
&& ptr < (void*)((char*)block + block->size)) {
|
||||
if (ptr >= block->ptr
|
||||
&& ptr < (void*)((char*)block->ptr + block->size)) {
|
||||
return 1;
|
||||
}
|
||||
block = block->next;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue