[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [xml] Crash in xmlPushInput]



Ryan Phillips wrote:
> 
>   The crash does not happen if you remove the XML_PARSE_RECOVER option.
> I will remove the crash in CVS, but I'm also thinking about ways to 
> allow XML_PARSE_RECOVER only in exceptional cases.
> 
> Daniel
> 

Daniel:

Was my patch going to be committed to CVS? or a derivative of it?

-ryan
Index: parser.c
===================================================================
--- parser.c	(revision 9555)
+++ parser.c	(working copy)
@@ -1442,7 +1442,7 @@
     if (ctxt->spaceNr > 0)
 	ctxt->space = &ctxt->spaceTab[ctxt->spaceNr - 1];
     else
-        ctxt->space = NULL;
+        ctxt->space = &ctxt->spaceTab[0];
     ret = ctxt->spaceTab[ctxt->spaceNr];
     ctxt->spaceTab[ctxt->spaceNr] = -1;
     return(ret);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]