commit | 8677f547031afad9f42aa0d188a09d43f16d20af | [log] [tgz] |
---|---|---|
author | Nick Wellnhofer <wellnhofer@aevum.de> | Tue Mar 05 03:24:45 2024 +0100 |
committer | Nick Wellnhofer <wellnhofer@aevum.de> | Fri Mar 15 19:47:08 2024 +0100 |
tree | e22e4468a3d57727c74ac91f454627400c5cc31a | |
parent | 9b3750c66008805106d899f7479598915bccc4c1 [diff] |
malloc-fail: Fix erroneous report in xmlNodeGetBaseSafe
diff --git a/tree.c b/tree.c index 2c13bfc..414979b 100644 --- a/tree.c +++ b/tree.c
@@ -5406,6 +5406,8 @@ if (cur->type == XML_ENTITY_DECL) { xmlEntityPtr ent = (xmlEntityPtr) cur; + if (ent->URI == NULL) + break; xmlFree(ret); ret = xmlStrdup(ent->URI); if (ret == NULL)