Files
third_party_libxml2/Fix-malloc-fail.patch
T
gaochao caac0ca413 libxml2安全漏洞补丁
Signed-off-by: gaochao <gaochao69@huawei.com>
2025-03-29 05:48:47 +00:00

14 lines
421 B
Diff

diff --git a/buf.c b/buf.c
index d8992f7..1ae7542 100644
--- a/buf.c
+++ b/buf.c
@@ -1261,7 +1261,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;