GNOME Bugzilla – Bug 521808
Wrong error message from xmlTextWriterStartDocument
Last modified: 2019-10-14 15:15:01 UTC
Please describe the problem: If xmlTextWriterStartDocument is called with an unrecognized encoding, e.g. xmlTextWriterStartDocument(writer, NULL, "THIS IS WRONG, NULL) then xmlTextWriterStartDocument will report xmlTextWriterStartDocument : out of memory! instead of "Unknown encoding" or something similar Steps to reproduce: xmlTextWriterStartDocument(writer, NULL, "THIS IS WRONG, NULL) Actual results: xmlTextWriterStartDocument will report xmlTextWriterStartDocument : out of memory! Expected results: reporting "Unknown encoding" or something similar Does this happen every time? Yes Other information: xmlwriter.c around line 539
Fixed here: https://gitlab.gnome.org/GNOME/libxml2/commit/d8999b1da03006390f22a4dc8fafcbbab92f3594