mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-01-26 10:03:34 +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:
parent
438ebbd59a
commit
ad55998f74
@ -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
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user