The status argument to XML_GetParsingStatus() cannot be NULL.
diff --git a/expat/lib/xmlparse.c b/expat/lib/xmlparse.c
index 1c0ccf0..19a83dd 100644
--- a/expat/lib/xmlparse.c
+++ b/expat/lib/xmlparse.c
@@ -4,6 +4,7 @@
 
 #include <stddef.h>
 #include <string.h>                     /* memset(), memcpy() */
+#include <assert.h>
 
 #define XML_BUILDING_EXPAT 1
 
@@ -1735,6 +1736,7 @@
 void XMLCALL
 XML_GetParsingStatus(XML_Parser parser, XML_ParsingStatus *status)
 {
+  assert(status != NULL);
   *status = parser->m_parsingStatus;
 }