mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Merge branch 'PHP-8.1' into PHP-8.2
* PHP-8.1: [ci skip] NEWS Fix null pointer dereferences in case of allocation failure
This commit is contained in:
11
NEWS
11
NEWS
@@ -11,6 +11,7 @@ PHP NEWS
|
||||
|
||||
- DOM:
|
||||
. Fix registerNodeClass with abstract class crashing. (nielsdos)
|
||||
. Add missing NULL pointer error check. (icy17)
|
||||
|
||||
- Fiber:
|
||||
. Fixed bug GH-11121 (ReflectionFiber segfault). (danog, trowski, bwoebi)
|
||||
@@ -25,8 +26,8 @@ PHP NEWS
|
||||
upgrading to 8.1.3 due to corrupt on-disk file cache). (turchanov)
|
||||
|
||||
- OpenSSL:
|
||||
Fixed bug GH-12489 (Missing sigbio creation checking in openssl_cms_verify).
|
||||
(Jakub Zelenka)
|
||||
. Fixed bug GH-12489 (Missing sigbio creation checking in openssl_cms_verify).
|
||||
(Jakub Zelenka)
|
||||
|
||||
- SOAP:
|
||||
. Fixed bug GH-12392 (Segmentation fault on SoapClient::__getTypes).
|
||||
@@ -42,6 +43,12 @@ PHP NEWS
|
||||
. Fixed bug #75708 (getimagesize with "&$imageinfo" fails on StreamWrappers).
|
||||
(Jakub Zelenka)
|
||||
|
||||
- XMLReader:
|
||||
. Add missing NULL pointer error check. (icy17)
|
||||
|
||||
- XMLWriter:
|
||||
. Add missing NULL pointer error check. (icy17)
|
||||
|
||||
- XSL:
|
||||
. Add missing module dependency. (nielsdos)
|
||||
|
||||
|
||||
@@ -1148,6 +1148,9 @@ char *_dom_get_valid_file_path(char *source, char *resolved_path, int resolved_p
|
||||
int isFileUri = 0;
|
||||
|
||||
uri = xmlCreateURI();
|
||||
if (uri == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
escsource = xmlURIEscapeStr((xmlChar *) source, (xmlChar *) ":");
|
||||
xmlParseURIReference(uri, (char *) escsource);
|
||||
xmlFree(escsource);
|
||||
|
||||
@@ -212,6 +212,9 @@ char *_xmlreader_get_valid_file_path(char *source, char *resolved_path, int reso
|
||||
int isFileUri = 0;
|
||||
|
||||
uri = xmlCreateURI();
|
||||
if (uri == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
escsource = xmlURIEscapeStr((xmlChar *)source, (xmlChar *)":");
|
||||
xmlParseURIReference(uri, (const char *)escsource);
|
||||
xmlFree(escsource);
|
||||
|
||||
@@ -110,6 +110,9 @@ static char *_xmlwriter_get_valid_file_path(char *source, char *resolved_path, i
|
||||
int isFileUri = 0;
|
||||
|
||||
uri = xmlCreateURI();
|
||||
if (uri == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
escsource = xmlURIEscapeStr((xmlChar *)source, (xmlChar *) ":");
|
||||
xmlParseURIReference(uri, (char *)escsource);
|
||||
xmlFree(escsource);
|
||||
|
||||
Reference in New Issue
Block a user