mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-29 11:41:22 +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:
@ -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>
|
Mon May 12 14:56:06 CEST 2008 Daniel Veillard <daniel@veillard.com>
|
||||||
|
|
||||||
* xmlschemas.c runtest.c testapi.c include/libxml/xmlreader.h
|
* xmlschemas.c runtest.c testapi.c include/libxml/xmlreader.h
|
||||||
|
@ -3162,7 +3162,8 @@ xmlFARegExec(xmlRegexpPtr comp, const xmlChar *content) {
|
|||||||
exec->counts = NULL;
|
exec->counts = NULL;
|
||||||
while ((exec->status == 0) &&
|
while ((exec->status == 0) &&
|
||||||
((exec->inputString[exec->index] != 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;
|
xmlRegTransPtr trans;
|
||||||
xmlRegAtomPtr atom;
|
xmlRegAtomPtr atom;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user