[libxml2] Fix processing in SAX2 in case of an allocation failure
- From: Daniel Veillard <veillard src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxml2] Fix processing in SAX2 in case of an allocation failure
- Date: Mon, 14 Jul 2014 13:23:48 +0000 (UTC)
commit a6ea72ad192f4209b5073e39358ce15f3f1dca4b
Author: Daniel Veillard <veillard redhat com>
Date: Mon Jul 14 20:29:34 2014 +0800
Fix processing in SAX2 in case of an allocation failure
Related to https://bugzilla.gnome.org/show_bug.cgi?id=731360
SAX2.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/SAX2.c b/SAX2.c
index e616efe..ffef3e1 100644
--- a/SAX2.c
+++ b/SAX2.c
@@ -2580,6 +2580,7 @@ xmlSAX2Characters(void *ctx, const xmlChar *ch, int len)
}
if (lastChild->content == NULL) {
xmlSAX2ErrMemory(ctxt, "xmlSAX2Characters: xmlStrdup returned NULL");
+ return;
}
if (((size_t)ctxt->nodelen + (size_t)len > XML_MAX_TEXT_LENGTH) &&
((ctxt->options & XML_PARSE_HUGE) == 0)) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]