Blame SOURCES/libxml2-Fix-an-error-in-previous-Conditional-section-patch.patch

267d54
From 519455f1d543b1aa8f560dac03ec4127dfbab038 Mon Sep 17 00:00:00 2001
267d54
From: Daniel Veillard <veillard@redhat.com>
267d54
Date: Tue, 27 Oct 2015 10:53:44 +0800
267d54
Subject: [PATCH] Fix an error in previous Conditional section patch
267d54
To: libvir-list@redhat.com
267d54
267d54
an off by one mistake in the change, led to error on correct
267d54
document where the end of the included entity was exactly
267d54
the end of the conditional section, leading to regtest failure
267d54
267d54
Signed-off-by: Daniel Veillard <veillard@redhat.com>
267d54
---
267d54
 parser.c | 2 +-
267d54
 1 file changed, 1 insertion(+), 1 deletion(-)
267d54
267d54
diff --git a/parser.c b/parser.c
267d54
index 4926ab0..b56d94c 100644
267d54
--- a/parser.c
267d54
+++ b/parser.c
267d54
@@ -6896,7 +6896,7 @@ xmlParseConditionalSections(xmlParserCtxtPtr ctxt) {
267d54
 				 NULL, NULL);
267d54
 	}
267d54
 	if ((ctxt-> instate != XML_PARSER_EOF) &&
267d54
-	    ((ctxt->input->cur + 3) < ctxt->input->end))
267d54
+	    ((ctxt->input->cur + 3) <= ctxt->input->end))
267d54
 	    SKIP(3);
267d54
     }
267d54
 }
267d54
-- 
267d54
2.5.0
267d54