1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-08-08 17:42:14 +03:00

bug in compression saving was crashing galeon, reported by teuf Daniel

* parser.c: bug in compression saving was crashing galeon, reported by teuf
Daniel
This commit is contained in:
Daniel Veillard
2003-10-08 21:33:28 +00:00
parent a88562208d
commit b65e12e3c5
2 changed files with 11 additions and 4 deletions

View File

@@ -1,3 +1,8 @@
Wed Oct 8 23:31:23 CEST 2003 Daniel Veillard <daniel@veillard.com>
* parser.c: bug in compression saving was crashing galeon
reported by teuf
Wed Oct 8 21:18:12 CEST 2003 Daniel Veillard <daniel@veillard.com> Wed Oct 8 21:18:12 CEST 2003 Daniel Veillard <daniel@veillard.com>
* error.c tree.c xmlIO.c xmllint.c: more cleanup through the * error.c tree.c xmlIO.c xmllint.c: more cleanup through the

View File

@@ -11392,11 +11392,13 @@ xmlSAXParseFileWithData(xmlSAXHandlerPtr sax, const char *filename,
if ((ctxt->wellFormed) || recovery) { if ((ctxt->wellFormed) || recovery) {
ret = ctxt->myDoc; ret = ctxt->myDoc;
if (ret != NULL) {
if (ctxt->input->buf->compressed > 0) if (ctxt->input->buf->compressed > 0)
ret->compression = 9; ret->compression = 9;
else else
ret->compression = ctxt->input->buf->compressed; ret->compression = ctxt->input->buf->compressed;
} }
}
else { else {
ret = NULL; ret = NULL;
xmlFreeDoc(ctxt->myDoc); xmlFreeDoc(ctxt->myDoc);