diff options
author | Daniel Veillard <veillard@redhat.com> | 2011-08-18 17:10:13 +0800 |
---|---|---|
committer | Daniel Veillard <veillard@redhat.com> | 2011-08-19 11:07:51 +0800 |
commit | f5048b3e71fc30ad096970b8df6e7af073bae4cb (patch) | |
tree | 65da4d67bbb6880e4afd0e073465180f90a32004 /xpointer.c | |
parent | 69f04562f75212bfcabecd190ea8b06ace28ece2 (diff) | |
download | libxml2-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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1269,6 +1269,7 @@ xmlXPtrEvalXPointer(xmlXPathParserContextPtr ctxt) { ctxt->valueNr = 0; ctxt->valueMax = 10; ctxt->value = NULL; + ctxt->valueFrame = 0; } SKIP_BLANKS; if (CUR == '/') { |