We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e43a398 + 18674e3 commit 02b1056Copy full SHA for 02b1056
NEWS
@@ -14,6 +14,7 @@ PHP NEWS
14
(nielsdos)
15
. Fixed bug GH-16630 (UAF in lexer with encoding translation and heredocs).
16
17
+ . Fix is_zend_ptr() huge block comparison. (nielsdos)
18
19
- Curl:
20
. Fixed bug GH-16802 (open_basedir bypass using curl extension). (nielsdos)
Zend/zend_alloc.c
@@ -2471,8 +2471,8 @@ ZEND_API bool is_zend_ptr(const void *ptr)
2471
2472
zend_mm_huge_list *block = AG(mm_heap)->huge_list;
2473
while (block) {
2474
- if (ptr >= (void*)block
2475
- && ptr < (void*)((char*)block + block->size)) {
+ if (ptr >= block->ptr
+ && ptr < (void*)((char*)block->ptr + block->size)) {
2476
return 1;
2477
}
2478
block = block->next;
0 commit comments