Validate parser parameter to XML_SetEndDoctypeDeclHandler
@@ -1492,6 +1492,7 @@ XML_SetStartDoctypeDeclHandler(XML_Parser parser,
void XMLCALL
XML_SetEndDoctypeDeclHandler(XML_Parser parser,
XML_EndDoctypeDeclHandler end) {
+ if (parser != NULL)
endDoctypeDeclHandler = end;
}
