mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Merge branch 'PHP-8.3' into PHP-8.4
* PHP-8.3: Fix UAF in tidy when tidySetErrorBuffer() fails
This commit is contained in:
1
NEWS
1
NEWS
@@ -82,6 +82,7 @@ PHP NEWS
|
||||
- Tidy:
|
||||
. Fixed GH-19021 (improved tidyOptGetCategory detection).
|
||||
(arjendekorte, David Carlier, Peter Kokot)
|
||||
. Fix UAF in tidy when tidySetErrorBuffer() fails. (nielsdos)
|
||||
|
||||
- XMLReader:
|
||||
. Fix arginfo/zpp violations when LIBXML_SCHEMAS_ENABLED is not available.
|
||||
|
||||
@@ -447,7 +447,7 @@ static zend_object *tidy_object_new(zend_class_entry *class_type, zend_object_ha
|
||||
efree(intern->ptdoc->errbuf);
|
||||
tidyRelease(intern->ptdoc->doc);
|
||||
efree(intern->ptdoc);
|
||||
efree(intern);
|
||||
/* TODO: convert to exception */
|
||||
php_error_docref(NULL, E_ERROR, "Could not set Tidy error buffer");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user