From fadc9db44c8f92173fc7eb5ccf517d46668a3fcc Mon Sep 17 00:00:00 2001 From: Rhodri James Date: Tue, 25 Apr 2017 18:17:36 +0100 Subject: [PATCH] Validate parser parameter for XML_ResumeParser --- expat/lib/xmlparse.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/expat/lib/xmlparse.c b/expat/lib/xmlparse.c index 7877df4a..3e662eb6 100644 --- a/expat/lib/xmlparse.c +++ b/expat/lib/xmlparse.c @@ -1969,6 +1969,8 @@ XML_ResumeParser(XML_Parser parser) { enum XML_Status result = XML_STATUS_OK; + if (parser == NULL) + return XML_STATUS_ERROR; if (ps_parsing != XML_SUSPENDED) { errorCode = XML_ERROR_NOT_SUSPENDED; return XML_STATUS_ERROR;