mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Merge branch 'PHP-8.2' into PHP-8.3
* PHP-8.2: Fix is_zend_ptr() huge block comparison
This commit is contained in:
commit
02b1056714
2 changed files with 3 additions and 2 deletions
1
NEWS
1
NEWS
|
@ -14,6 +14,7 @@ PHP NEWS
|
||||||
(nielsdos)
|
(nielsdos)
|
||||||
. Fixed bug GH-16630 (UAF in lexer with encoding translation and heredocs).
|
. Fixed bug GH-16630 (UAF in lexer with encoding translation and heredocs).
|
||||||
(nielsdos)
|
(nielsdos)
|
||||||
|
. Fix is_zend_ptr() huge block comparison. (nielsdos)
|
||||||
|
|
||||||
- Curl:
|
- Curl:
|
||||||
. Fixed bug GH-16802 (open_basedir bypass using curl extension). (nielsdos)
|
. Fixed bug GH-16802 (open_basedir bypass using curl extension). (nielsdos)
|
||||||
|
|
|
@ -2471,8 +2471,8 @@ ZEND_API bool is_zend_ptr(const void *ptr)
|
||||||
|
|
||||||
zend_mm_huge_list *block = AG(mm_heap)->huge_list;
|
zend_mm_huge_list *block = AG(mm_heap)->huge_list;
|
||||||
while (block) {
|
while (block) {
|
||||||
if (ptr >= (void*)block
|
if (ptr >= block->ptr
|
||||||
&& ptr < (void*)((char*)block + block->size)) {
|
&& ptr < (void*)((char*)block->ptr + block->size)) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
block = block->next;
|
block = block->next;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue