mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Merge branch 'PHP-8.3'
* PHP-8.3: [ci skip] NEWS Fix null pointer dereferences in case of allocation failure
This commit is contained in:
@@ -1157,6 +1157,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);
|
||||
|
||||
@@ -109,6 +109,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