1From cc645b439f54040b424bcb6c9b4c2c3f51cf2f9e Mon Sep 17 00:00:00 2001 2From: Nick Wellnhofer <wellnhofer@aevum.de> 3Date: Sun, 13 Nov 2022 15:08:44 +0100 4Subject: [PATCH 14/28] io: Fix "buffer full" error with certain buffer sizes 5 6Remove a useless check in xmlParserInputBufferGrow that could be 7triggered after changing xmlBufAvail in c14cac8b. 8 9Fixes #438. 10 11Reference: https://github.com/GNOME/libxml2/commit/22d879bf0ab3ef14177a6388e28bb264bd36e64b 12Conflict: NA 13--- 14 xmlIO.c | 6 ------ 15 1 file changed, 6 deletions(-) 16 17diff --git a/xmlIO.c b/xmlIO.c 18index 3f5307f..0762034 100644 19--- a/xmlIO.c 20+++ b/xmlIO.c 21@@ -3247,12 +3247,6 @@ xmlParserInputBufferGrow(xmlParserInputBufferPtr in, int len) { 22 if ((len <= MINLEN) && (len != 4)) 23 len = MINLEN; 24 25- if (xmlBufAvail(in->buffer) <= 0) { 26- xmlIOErr(XML_IO_BUFFER_FULL, NULL); 27- in->error = XML_IO_BUFFER_FULL; 28- return(-1); 29- } 30- 31 if (xmlBufGrow(in->buffer, len + 1) < 0) { 32 xmlIOErrMemory("growing input buffer"); 33 in->error = XML_ERR_NO_MEMORY; 34-- 352.27.0 36 37