diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2008-05-12 13:15:35 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2008-05-12 13:15:35 +0000 |
commit | ad55998f74ab7f89cc5ed454589fb8f528873a02 (patch) | |
tree | 4dd238f55cedd5b39d94c75bea5ea30d004a8a0e /xmlregexp.c | |
parent | 438ebbd59af78c436397ae488e42aeca5cad7542 (diff) | |
download | android_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.c | 3 |
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; |