xzyang / rpms / libxml2

Forked from rpms/libxml2 3 years ago
Clone

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

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