[Reproducible-commits] [libxslt] 02/04: Fix some case of pattern parsing errors
Mattia Rizzolo
mattia at debian.org
Fri May 20 12:49:10 UTC 2016
This is an automated email from the git hooks/post-receive script.
mattia pushed a commit to annotated tag debian/1.1.26-6+squeeze1
in repository libxslt.
commit 18dd5c48fc1829ec75823b5ac975574b785c1233
Author: Abhishek Arya <inferno at chromium.org>
Date: Sun Jan 22 17:47:50 2012 +0800
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
---
libxslt/pattern.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libxslt/pattern.c b/libxslt/pattern.c
index 8ce74e3..e0aebff 100644
--- a/libxslt/pattern.c
+++ b/libxslt/pattern.c
@@ -1864,6 +1864,8 @@ xsltCompilePatternInternal(const xmlChar *pattern, xmlDocPtr doc,
while ((pattern[end] != 0) && (pattern[end] != '"'))
end++;
}
+ if (pattern[end] == 0)
+ break;
end++;
}
if (current == end) {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/libxslt.git
More information about the Reproducible-commits
mailing list