1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-10-26 12:25:09 +03:00

avoid a regexp crash, should fix #523738 Daniel

* xmlregexp.c: avoid a regexp crash, should fix #523738
Daniel

svn path=/trunk/; revision=3744
This commit is contained in:
Daniel Veillard 2008-05-12 13:15:35 +00:00
parent 438ebbd59a
commit ad55998f74
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
Mon May 12 15:12:44 CEST 2008 Daniel Veillard <daniel@veillard.com>
* xmlregexp.c: avoid a regexp crash, should fix #523738
Mon May 12 14:56:06 CEST 2008 Daniel Veillard <daniel@veillard.com>
* xmlschemas.c runtest.c testapi.c include/libxml/xmlreader.h

View File

@ -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;