GNOME Bugzilla – Bug 150082
Memory Leak in DomParser
Last modified: 2004-12-22 21:47:04 UTC
broken.xml: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE data SYSTEM "data.dtd"> <data> <user>admin & test</user> </data> testcase.cpp: #include <libxml++/libxml++.h> int main(void) { while (1) { try { xmlpp::DomParser parser; parser.set_validate(false); parser.parse_file("broken.xml"); } catch(...) { } } return 0; }
This issue has been initialy reported by Thomas Jarosch in bug #132014, but since the issue was not related, I created a issue.
The underlying document was not freed if an error occured.