Validate parser parameter to XML_SetEndCdataSectionHandler
@@ -1447,6 +1447,7 @@ XML_SetStartCdataSectionHandler(XML_Parser parser,
void XMLCALL
XML_SetEndCdataSectionHandler(XML_Parser parser,
XML_EndCdataSectionHandler end) {
+ if (parser != NULL)
endCdataSectionHandler = end;
}
