commit | 621222bce6e0ecd6f886c4c3e18ccd4df09cbfdb | [log] [tgz] |
---|---|---|
author | Rhodri James <rhodri@kynesim.co.uk> | Tue Apr 25 18:13:36 2017 +0100 |
committer | Sebastian Pipping <sebastian@pipping.org> | Wed May 24 20:49:40 2017 +0200 |
tree | d29017841237b2f8a2acb108c6818aa9e6f4687c | |
parent | 56c75720c2115deb9358a95670be5f9dd5f6e945 [diff] |
Validate parser parameter for XML_ParseBuffer
diff --git a/expat/lib/xmlparse.c b/expat/lib/xmlparse.c index 991a527..62cd1d6 100644 --- a/expat/lib/xmlparse.c +++ b/expat/lib/xmlparse.c
@@ -1782,6 +1782,8 @@ const char *start; enum XML_Status result = XML_STATUS_OK; + if (parser == NULL) + return XML_STATUS_ERROR; switch (ps_parsing) { case XML_SUSPENDED: errorCode = XML_ERROR_SUSPENDED;