projects
/
platform
/
upstream
/
libxslt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ddfa98a
)
Fix some case of pattern parsing errors
author
Abhishek Arya
<inferno@chromium.org>
Sun, 22 Jan 2012 09:47:50 +0000
(17:47 +0800)
committer
Daniel Veillard
<veillard@redhat.com>
Sun, 22 Jan 2012 09:47:50 +0000
(17:47 +0800)
We could accidentally hit an off by one string array access
due to improper loop exit when parsing patterns
libxslt/pattern.c
patch
|
blob
|
history
diff --git
a/libxslt/pattern.c
b/libxslt/pattern.c
index
6161376
..
1155b54
100644
(file)
--- a/
libxslt/pattern.c
+++ b/
libxslt/pattern.c
@@
-1867,6
+1867,8
@@
xsltCompilePatternInternal(const xmlChar *pattern, xmlDocPtr doc,
while ((pattern[end] != 0) && (pattern[end] != '"'))
end++;
}
+ if (pattern[end] == 0)
+ break;
end++;
}
if (current == end) {