mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-29 11:41:22 +03:00
XPath fixes and cleanup, 2 general bug fixes:
- xpath.[ch] : fixed some serious XPath Predicate evaluation problems - Makefile.am : added XPath regression tests to normal tests - uri.c: fixed a problem with local paths, cleanup - parser.c: fixed a problem with large CData sections Daniel
This commit is contained in:
6
parser.c
6
parser.c
@ -6014,6 +6014,7 @@ xmlParseCDSect(xmlParserCtxtPtr ctxt) {
|
||||
int r, rl;
|
||||
int s, sl;
|
||||
int cur, l;
|
||||
int count = 0;
|
||||
|
||||
if ((NXT(0) == '<') && (NXT(1) == '!') &&
|
||||
(NXT(2) == '[') && (NXT(3) == 'C') &&
|
||||
@ -6070,6 +6071,11 @@ xmlParseCDSect(xmlParserCtxtPtr ctxt) {
|
||||
rl = sl;
|
||||
s = cur;
|
||||
sl = l;
|
||||
count++;
|
||||
if (count > 50) {
|
||||
GROW;
|
||||
count = 0;
|
||||
}
|
||||
NEXTL(l);
|
||||
cur = CUR_CHAR(l);
|
||||
}
|
||||
|
Reference in New Issue
Block a user