projects
/
libexpat
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
571b2fe
)
Validate parser parameter to XML_SetEntityDeclHandler
author
Rhodri James
<rhodri@kynesim.co.uk>
Tue, 25 Apr 2017 16:50:20 +0000
(17:50 +0100)
committer
Sebastian Pipping
<sebastian@pipping.org>
Wed, 24 May 2017 18:49:39 +0000
(20:49 +0200)
expat/lib/xmlparse.c
patch
|
blob
|
history
diff --git
a/expat/lib/xmlparse.c
b/expat/lib/xmlparse.c
index 29e68428d0256cfb5aed8e6e92a2f848515a0445..27accb2218e3285d4ee5c191e42ecabe87899cf4 100644
(file)
--- a/
expat/lib/xmlparse.c
+++ b/
expat/lib/xmlparse.c
@@
-1603,7
+1603,8
@@
void XMLCALL
XML_SetEntityDeclHandler(XML_Parser parser,
XML_EntityDeclHandler handler)
{
- entityDeclHandler = handler;
+ if (parser != NULL)
+ entityDeclHandler = handler;
}
void XMLCALL