Re: [libxml++] Segfault in dom parser
- From: Thomas Jarosch <thomas jarosch intra2net com>
- To: libxmlplusplus-general lists sourceforge net
- Subject: Re: [libxml++] Segfault in dom parser
- Date: Sat, 14 Jun 2003 01:19:09 +0200
Hi Christophe,
> > > Remove example.xml and try running the included example dom_parser.
> > > It should segfault. Is it a bug of the example or the library?
> >
> > The bug comes from the lib which doesn't check if context creation is
> > sucessfull. I'll commit a patch in a few minutes.
> >
> :-)
> :
> > On context creation failure the lib will now throw an internal_exception
> > with the message "cannot create parsing context".
> > If anybody think a new exception type is needed for that just tell me
> > we'll discuss it. In the mean time at least we'll not have a segfault.
I found another two segfaults :o)
- Zero byte file
- Special one byte file (attached)
The segfaults are reproducable with the dom parser example program.
Thomas
<
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]