[xml] One more possible bug in xmlregexp.c



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]