mirror of
https://github.com/libexpat/libexpat.git
synced 2025-04-14 16:20:45 +00:00
Validate parser parameter for XML_ResumeParser
This commit is contained in:
parent
9ce48e786c
commit
fadc9db44c
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue