xmlSplitQName2 may return nullptr for the result, which when passed to CFStringCreateWithCString would attempt to perform strlen(nullptr) which is ill-defined. When updating libxml2 on Windows, we would perform an invalid memory access due to the strlen invocation inside CFStringCreateWithCString. Protect against this case, returning NULL instead.
xmlSplitQName2
may returnnullptr
for the result, which when passed toCFStringCreateWithCString
would attempt to performstrlen(nullptr)
which is ill-defined. When updating libxml2 on Windows, we would perform an invalid memory access due to thestrlen
invocation insideCFStringCreateWithCString
. Protect against this case, returningNULL
instead.