mirror of
https://github.com/libexpat/libexpat.git
synced 2025-04-14 16:20:45 +00:00
Validate parser parameter to XML_DefaultCurrent
This commit is contained in:
parent
581a4c7ccf
commit
ea1f407c06
1 changed files with 2 additions and 0 deletions
|
@ -2113,6 +2113,8 @@ XML_MemFree(XML_Parser parser, void *ptr)
|
|||
void XMLCALL
|
||||
XML_DefaultCurrent(XML_Parser parser)
|
||||
{
|
||||
if (parser == NULL)
|
||||
return;
|
||||
if (defaultHandler) {
|
||||
if (openInternalEntities)
|
||||
reportDefault(parser,
|
||||
|
|
Loading…
Add table
Reference in a new issue