Commit fe5a4fa3 authored by Abhishek Arya's avatar Abhishek Arya Committed by Daniel Veillard

Fix some case of pattern parsing errors

We could accidentally hit an off by one string array access
due to improper loop exit when parsing patterns
parent ddfa98a8
......@@ -1867,6 +1867,8 @@ xsltCompilePatternInternal(const xmlChar *pattern, xmlDocPtr doc,
while ((pattern[end] != 0) && (pattern[end] != '"'))
if (pattern[end] == 0)
if (current == end) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment