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 potential NULL deref
This commit is contained in:
@@ -1877,7 +1877,7 @@ static int schema_attribute(sdlPtr sdl, xmlAttrPtr tns, xmlNodePtr attrType, sdl
|
||||
} else {
|
||||
xmlNsPtr nsPtr = attr_find_ns(attr);
|
||||
|
||||
if (strncmp((char*)nsPtr->href, SCHEMA_NAMESPACE, sizeof(SCHEMA_NAMESPACE))) {
|
||||
if (nsPtr && strncmp((char*)nsPtr->href, SCHEMA_NAMESPACE, sizeof(SCHEMA_NAMESPACE))) {
|
||||
smart_str key2 = {0};
|
||||
sdlExtraAttributePtr ext;
|
||||
xmlNsPtr nsptr;
|
||||
|
||||
Reference in New Issue
Block a user