Re: [xml] One more possible bug in xmlregexp.c
- From: Daniel Veillard <veillard redhat com>
- To: Sreeni Nair <sreeni nair gmail com>
- Cc: xml gnome org
- Subject: Re: [xml] One more possible bug in xmlregexp.c
- Date: Thu, 29 Dec 2005 05:03:19 -0500
On Wed, Dec 28, 2005 at 06:37:34PM -0500, Sreeni Nair wrote:
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.
  Right, good catch. Is that the output of a manual review or do you have
an automated tool to check those ?
  Fix applied, will commit soon,
   thanks !
Daniel
-- 
Daniel Veillard      | Red Hat http://redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]