]> granicus.if.org Git - libexpat/commitdiff
Validate parser parameter for XML_GetParsingStatus
authorRhodri James <rhodri@kynesim.co.uk>
Tue, 25 Apr 2017 17:18:57 +0000 (18:18 +0100)
committerSebastian Pipping <sebastian@pipping.org>
Wed, 24 May 2017 18:49:40 +0000 (20:49 +0200)
expat/lib/xmlparse.c

index 3e662eb667a12a3fd3d92d74445af0ad3f3cc66f..6b4e5868070ef49213db158db813ab133cd9a8a2 100644 (file)
@@ -2007,6 +2007,8 @@ XML_ResumeParser(XML_Parser parser)
 void XMLCALL
 XML_GetParsingStatus(XML_Parser parser, XML_ParsingStatus *status)
 {
+  if (parser == NULL)
+    return;
   assert(status != NULL);
   *status = parser->m_parsingStatus;
 }