2015-08-27 Kjell Ahlstedt xmlpp::wrapped_exception: Add comments Bug #753570 2015-08-27 Kjell Ahlstedt Fix make check with --enable-warnings=fatal and fix make distcheck * tests/saxparser_chunk_parsing_inconsistent_state/main.cc: * tests/saxparser_parse_double_free/main.cc: Comment out names of unused parameters in function definitions. * Makefile.am: Add wrapped_exception.h to h_exceptions_sources_public or else it won't be distributed. * libxml++/exceptions/wrapped_exception.h: Add DOXYGEN_SHOULD_SKIP_THIS. xmlpp::wrapped_exception is a private class that shall not be included in the documentation. Bug #753570. 2015-08-27 Daniel Trebbien Introduce xmlpp::wrapped_exception This is an internal class which is used by SaxParser and Validator to save the exception object thrown by a handler method when the exception does not derive from xmlpp::exception (e.g. std::exception). The Raise() method of xmlpp::wrapped_exception calls std::rethrow_exception() to rethrow the exception object thrown by the handler method. Catching any exception object thrown by a handler method is important in ensuring that we are able to reset the internal state, and, in the case of SaxParser::parse(), that we restore the old _xmlSAXHandler pointer so that we do not double-free the _xmlSAXHandler object held by SaxParser. Fixes Bug 753570 - “double free or corruption” if a std::exception is thrown https://bugzilla.gnome.org/show_bug.cgi?id=753570 2015-08-02 Kjell Ahlstedt Replace some auto_ptr by unique_ptr * libxml++/parsers/parser.cc: * libxml++/parsers/saxparser.cc: * libxml++/validators/relaxngvalidator.cc: * libxml++/validators/validator.cc: * libxml++/validators/xsdvalidator.cc: Replace the deprecated std::auto_ptr by std::unique_ptr. There are still auto_ptrs in header files. Replacing them would break ABI. Bug #753123. 2015-07-20 Murray Cumming 2.39.1