aboutsummaryrefslogtreecommitdiffstats
path: root/xmlregexp.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2008-05-12 13:15:35 +0000
committerDaniel Veillard <veillard@src.gnome.org>2008-05-12 13:15:35 +0000
commitad55998f74ab7f89cc5ed454589fb8f528873a02 (patch)
tree4dd238f55cedd5b39d94c75bea5ea30d004a8a0e /xmlregexp.c
parent438ebbd59af78c436397ae488e42aeca5cad7542 (diff)
downloadandroid_external_libxml2-ad55998f74ab7f89cc5ed454589fb8f528873a02.tar.gz
android_external_libxml2-ad55998f74ab7f89cc5ed454589fb8f528873a02.tar.bz2
android_external_libxml2-ad55998f74ab7f89cc5ed454589fb8f528873a02.zip
avoid a regexp crash, should fix #523738 Daniel
* xmlregexp.c: avoid a regexp crash, should fix #523738 Daniel svn path=/trunk/; revision=3744
Diffstat (limited to 'xmlregexp.c')
-rw-r--r--xmlregexp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xmlregexp.c b/xmlregexp.c
index 389453b9..54eb9576 100644
--- a/xmlregexp.c
+++ b/xmlregexp.c
@@ -3162,7 +3162,8 @@ xmlFARegExec(xmlRegexpPtr comp, const xmlChar *content) {
exec->counts = NULL;
while ((exec->status == 0) &&
((exec->inputString[exec->index] != 0) ||
- (exec->state->type != XML_REGEXP_FINAL_STATE))) {
+ ((exec->state != NULL) &&
+ (exec->state->type != XML_REGEXP_FINAL_STATE)))) {
xmlRegTransPtr trans;
xmlRegAtomPtr atom;