Re: [Libxmlplusplus-general] Bug in SaxParser::parse_stream?



-----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 
sourceforge and update the Changelog too.

Cheers,

Christophe



Le Mercredi 18 Décembre 2002 10:35, Fredrik Arnerup a écrit :
> 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 = _exception;
>     _exception = 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 = NULL;
>
> -  if( ! _exception )
> +  if( _exception )
>    {
>      exception * tmp = _exception;
>      _exception = 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
> Libxmlplusplus-general lists sourceforge net
> https://lists.sourceforge.net/lists/listinfo/libxmlplusplus-general
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAj4AUmMACgkQB+sU3TyOQjCLTQCgwNzabvTlxX16jEcmdFdzYdCB
otwAoLIzzT5Rw6P5XtLYYdS42Z8w9/Fx
=Qx6L
-----END PGP SIGNATURE-----





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