Validate parser parameter to XML_GetCurrentByteCount
This commit is contained in:
parent
2253c12304
commit
fd2571b27a
@ -2034,6 +2034,8 @@ XML_GetCurrentByteIndex(XML_Parser parser)
|
||||
int XMLCALL
|
||||
XML_GetCurrentByteCount(XML_Parser parser)
|
||||
{
|
||||
if (parser == NULL)
|
||||
return 0;
|
||||
if (eventEndPtr && eventPtr)
|
||||
return (int)(eventEndPtr - eventPtr);
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user