1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-30 22:43: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,10 +11392,12 @@ xmlSAXParseFileWithData(xmlSAXHandlerPtr sax, const char *filename,
if ((ctxt->wellFormed) || recovery) { if ((ctxt->wellFormed) || recovery) {
ret = ctxt->myDoc; ret = ctxt->myDoc;
if (ctxt->input->buf->compressed > 0) if (ret != NULL) {
ret->compression = 9; if (ctxt->input->buf->compressed > 0)
else ret->compression = 9;
ret->compression = ctxt->input->buf->compressed; else
ret->compression = ctxt->input->buf->compressed;
}
} }
else { else {
ret = NULL; ret = NULL;