From f5048b3e71fc30ad096970b8df6e7af073bae4cb Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Thu, 18 Aug 2011 17:10:13 +0800 Subject: 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. --- xpointer.c | 1 + 1 file changed, 1 insertion(+) (limited to 'xpointer.c') 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 == '/') { -- cgit v1.2.1