[libxml++] Unknown encoding crashes DOM Parser
- From: p klotz icoserve com
- To: libxmlplusplus-general lists sourceforge net
- Subject: [libxml++] Unknown encoding crashes DOM Parser
- Date: Tue, 10 Jun 2003 13:07:35 +0200
The following encoding
<?xml version="1.0" encoding="ISO-8859-15"?>
leads to a crash under Windows and Linux.
In domparser.cc / DomParser::parse_context() one finds:
xmlParseDocument(_context);
_doc = new Document(_context->myDoc); // context->myDoc is 0 if encoding is
illegal, therefore the constructor segfaults
It should be checked if _context->myDoc is a valid pointer.
Best regards, Peter.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]