summaryrefslogtreecommitdiff
path: root/xpointer.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@redhat.com>2011-08-18 17:10:13 +0800
committerDaniel Veillard <veillard@redhat.com>2011-08-19 11:07:51 +0800
commitf5048b3e71fc30ad096970b8df6e7af073bae4cb (patch)
tree65da4d67bbb6880e4afd0e073465180f90a32004 /xpointer.c
parent69f04562f75212bfcabecd190ea8b06ace28ece2 (diff)
downloadlibxml2-f5048b3e71fc30ad096970b8df6e7af073bae4cb.tar.gz
Hardening of XPath evaluation
Add a mechanism of frame for XPath evaluation when entering a function or a scoped evaluation, also fix a potential problem in predicate evaluation.
Diffstat (limited to 'xpointer.c')
-rw-r--r--xpointer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/xpointer.c b/xpointer.c
index 7a42d02e..37afa3a1 100644
--- a/xpointer.c
+++ b/xpointer.c
@@ -1269,6 +1269,7 @@ xmlXPtrEvalXPointer(xmlXPathParserContextPtr ctxt) {
ctxt->valueNr = 0;
ctxt->valueMax = 10;
ctxt->value = NULL;
+ ctxt->valueFrame = 0;
}
SKIP_BLANKS;
if (CUR == '/') {