File: libxml2-2.9.0-dtd.patch

package info (click to toggle)
qtwebkit-opensource-src 5.3.2%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 291,876 kB
  • ctags: 268,746
  • sloc: cpp: 1,358,098; python: 70,286; ansic: 42,964; perl: 35,473; ruby: 12,229; objc: 9,465; xml: 8,396; asm: 3,871; yacc: 2,397; sh: 1,647; makefile: 644; lex: 644; java: 110
file content (27 lines) | stat: -rw-r--r-- 850 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From cf8f0424db45c43ecda812b7c238ece5e2398107 Mon Sep 17 00:00:00 2001
From: Dan Winship <danw@gnome.org>
Date: Fri, 21 Dec 2012 11:13:31 +0800
Subject: [PATCH] Fix an error in the progressive DTD parsing code

For https://bugzilla.gnome.org/show_bug.cgi?id=689958
We were looking for the wrong character in the input stream
---
 parser.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/parser.c b/parser.c
index c7802cf..e719c9f 100644
--- a/parser.c
+++ b/parser.c
@@ -12042,7 +12042,7 @@ xmlParseCheckTransition(xmlParserCtxtPtr ctxt, const char *chunk, int size) {
     }
     if ((ctxt->progressive == XML_PARSER_DTD) ||
         (ctxt->instate == XML_PARSER_DTD)) {
-        if (memchr(chunk, ']', size) != NULL)
+        if (memchr(chunk, '>', size) != NULL)
             return(1);
         return(0);
     }
-- 
1.8.0.1