diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2004-11-05 17:22:25 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2004-11-05 17:22:25 +0000 |
commit | ce682bc24b79f1dd29b781d4c17f9bf169ce7e32 (patch) | |
tree | 7994a79a3ff5039b9d3c0b8f541aeec9b24d001c /parser.c | |
parent | b031cef5b537d8eda30f508627f08bc642bbd31d (diff) | |
download | libxml2-ce682bc24b79f1dd29b781d4c17f9bf169ce7e32.tar.gz |
autogenerate a minimal NULL value sequence for unknown pointer types This
* gentest.py testapi.c: autogenerate a minimal NULL value sequence
for unknown pointer types
* HTMLparser.c SAX2.c chvalid.c encoding.c entities.c parser.c
parserInternals.c relaxng.c valid.c xmlIO.c xmlreader.c
xmlsave.c xmlschemas.c xmlschemastypes.c xmlstring.c xpath.c
xpointer.c: This uncovered an impressive amount of entry points
not checking for NULL pointers when they ought to, closing all
the open gaps.
Daniel
Diffstat (limited to 'parser.c')
-rw-r--r-- | parser.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -10384,6 +10384,8 @@ xmlParseCtxtExternalEntity(xmlParserCtxtPtr ctx, const xmlChar *URL, xmlChar start[4]; xmlCharEncoding enc; + if (ctx == NULL) return(-1); + if (ctx->depth > 40) { return(XML_ERR_ENTITY_LOOP); } |