From: Christophe de V. <cde...@al...> - 2002-12-18 10:49:09
|
=2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Thanks ! The patch has been included in the CVS. If you ever have other patchs to propose, please use the patch tracker on=20 sourceforge and update the Changelog too. Cheers, Christophe Le Mercredi 18 D=E9cembre 2002 10:35, Fredrik Arnerup a =E9crit : > Hello, > > I think I have found a bug in SaxParser::parse_stream (saxparser.cc) > in libxml++ 0.17.0. This code: > > if( ! _exception ) > { > exception * tmp =3D _exception; > _exception =3D 0; > tmp->Raise(); > } > > will either do nothing at all or try to follow a null pointer. > > Below is a patch for what I think was intended. > > /Fredrik Arnerup > e97_far@e.kth.se > > --- libxml++-0.17.0/libxml++/parsers/saxparser.cc Mon Dec 9 20:35:33 2002 > +++ ../libxml++-0.17.0/libxml++/parsers/saxparser.cc Wed Dec 18 02:04:58 > 2002 @@ -175,11 +175,11 @@ > xmlParseChunk(_context, NULL, 0, 1); > > xmlFreeParserCtxt(_context); > _context =3D NULL; > > - if( ! _exception ) > + if( _exception ) > { > exception * tmp =3D _exception; > _exception =3D 0; > tmp->Raise(); > } > > > ------------------------------------------------------- > This sf.net email is sponsored by: > With Great Power, Comes Great Responsibility > Learn to use your power at OSDN's High Performance Computing Channel > http://hpc.devchannel.org/ > _______________________________________________ > Libxmlplusplus-general mailing list > Lib...@li... > https://lists.sourceforge.net/lists/listinfo/libxmlplusplus-general =2D----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iEYEARECAAYFAj4AUmMACgkQB+sU3TyOQjCLTQCgwNzabvTlxX16jEcmdFdzYdCB otwAoLIzzT5Rw6P5XtLYYdS42Z8w9/Fx =3DQx6L =2D----END PGP SIGNATURE----- |