[xml] One more possible bug in xmlregexp.c
- From: Sreeni Nair <sreeni nair gmail com>
- To: xml gnome org
- Subject: [xml] One more possible bug in xmlregexp.c
- Date: Wed, 28 Dec 2005 18:37:34 -0500
In xmlregexp.c, on or around line number 5122, the current code reads
ctxt->start = ctxt->state = xmlRegNewState(ctxt);
ctxt->start->type = XML_REGEXP_START_STATE;
if (ctxt->start == NULL) {
xmlFreeAutomata(ctxt);
return(NULL);
}
The check against NULL should come before the assignment of
XML_REGEXP_START_STATE, I think.
Regards,
S.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]