commit | 669e88c0650646a6d4eae978296ad753a2a47b7f | [log] [tgz] |
---|---|---|
author | Jim Meyering <jim@meyering.net> | Wed Jul 29 11:33:32 2009 +0200 |
committer | Daniel Veillard <veillard@redhat.com> | Wed Jul 29 11:33:32 2009 +0200 |
tree | 9a75ccc512357c784f59e7138d43461b77a01fb2 | |
parent | 2cdd17e290f05a11bc0fa2b806f7fc2cc13727a9 [diff] [blame] |
potential NULL dereference on non-glibc * SAX2.c (xmlCheckDefaultedAttributes): When xmlStrdup and/or xmlStrcat fails due to OOM avoid printing NULL via a printf-style "%s" format
diff --git a/SAX2.c b/SAX2.c index 164409c..8dc1d58 100644 --- a/SAX2.c +++ b/SAX2.c
@@ -1420,6 +1420,10 @@ } else { fulln = xmlStrdup(attr->name); } + if (fulln == NULL) { + xmlSAX2ErrMemory(ctxt, "xmlSAX2StartElement"); + break; + } /* * Check that the attribute is not declared in the