Skip to content

Commit cef23c4

Browse files
committed
Merge branch 'PHP-8.4'
* PHP-8.4: Fix is_zend_ptr() huge block comparison
2 parents d411fdf + 8fdcd9f commit cef23c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Zend/zend_alloc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2617,8 +2617,8 @@ ZEND_API bool is_zend_ptr(const void *ptr)
26172617

26182618
zend_mm_huge_list *block = AG(mm_heap)->huge_list;
26192619
while (block) {
2620-
if (ptr >= (void*)block
2621-
&& ptr < (void*)((char*)block + block->size)) {
2620+
if (ptr >= block->ptr
2621+
&& ptr < (void*)((char*)block->ptr + block->size)) {
26222622
return 1;
26232623
}
26242624
block = block->next;

0 commit comments

Comments
 (0)