Re: [xml] Segfault setting both xmlTextReaderSetStructuredErrorHandler and xmlSetStructuredErrorFunc



On 2012-Feb-01, 18:01, Pietro Cerutti wrote:
Hi, 

I have a segfault running the sample program here:
http://people.freebsd.org/~gahr/xmlErrorHandler.c

It seems that setting up both xmlTextReaderSetStructuredErrorHandler and
xmlSetStructuredErrorFunc confuses the code around error.c:592 and
following, but I'm having a hard time tracking down the logics there..

I'm not sure if this is somehow related to this other post:
http://mail.gnome.org/archives/xml/2009-August/msg00020.html


I have a patch at http://people.freebsd.org/~gahr/error.c.diff .

It works with any combinations of using xmlSetStructuredErrorFunc,
xmlTextReaderSetStructuredErrorHandler, both, or none.

Feedback welcome,

-- 
Pietro Cerutti
gahr gahr ch

PGP Public Key:
http://gahr.ch/pgp

Attachment: pgpwDkmvG1IUq.pgp
Description: PGP signature



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