diff --git a/Fix-malloc-fail.patch b/Fix-malloc-fail.patch new file mode 100644 index 0000000000000000000000000000000000000000..e8ec411f6b810c8e62f3216397fc7f5a1f5503ec --- /dev/null +++ b/Fix-malloc-fail.patch @@ -0,0 +1,13 @@ +diff --git a/buf.c b/buf.c +index 40a5ee06..1fa975a6 100644 +--- a/buf.c ++++ b/buf.c +@@ -1265,7 +1265,7 @@ xmlBufMergeBuffer(xmlBufPtr buf, xmlBufferPtr buffer) { + */ + int + xmlBufResetInput(xmlBufPtr buf, xmlParserInputPtr input) { +- if ((input == NULL) || (buf == NULL) || (buf->error)) ++ if ((input == NULL) || (buf == NULL)) + return(-1); + CHECK_COMPAT(buf) + input->base = input->cur = buf->content; \ No newline at end of file diff --git a/install.py b/install.py index 4a3b1d2003cda6acbcac8602c9cc50d09d10d2ce..bedc0c305414ab9a6a6ecad50e0f050eaddbfe43 100755 --- a/install.py +++ b/install.py @@ -228,7 +228,8 @@ def do_patch(args, target_dir): "backport-Fix-use-after-free-in-xmlParseContentInternal.patch", "backport-malloc-fail-Fix-null-deref-after-xmlXIncludeNewRef.patch", "backport-xpath-Ignore-entity-ref-nodes-when-computing-node-ha.patch", - "backport-SAX-Always-initialize-SAX1-element-handlers.patch" + "backport-SAX-Always-initialize-SAX1-element-handlers.patch", + "Fix-malloc-fail.patch" ] for patch in patch_file: