From: Fredrik A. <e97_far@e.kth.se> - 2002-12-18 09:36:01
|
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(); } |