commit | f5048b3e71fc30ad096970b8df6e7af073bae4cb | [log] [tgz] |
---|---|---|
author | Daniel Veillard <veillard@redhat.com> | Thu Aug 18 17:10:13 2011 +0800 |
committer | Daniel Veillard <veillard@redhat.com> | Fri Aug 19 11:07:51 2011 +0800 |
tree | 65da4d67bbb6880e4afd0e073465180f90a32004 | |
parent | 69f04562f75212bfcabecd190ea8b06ace28ece2 [diff] [blame] |
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.
diff --git a/xpointer.c b/xpointer.c index 7a42d02..37afa3a 100644 --- a/xpointer.c +++ b/xpointer.c
@@ -1269,6 +1269,7 @@ ctxt->valueNr = 0; ctxt->valueMax = 10; ctxt->value = NULL; + ctxt->valueFrame = 0; } SKIP_BLANKS; if (CUR == '/') {