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:
10
parser.c
10
parser.c
@ -11392,10 +11392,12 @@ xmlSAXParseFileWithData(xmlSAXHandlerPtr sax, const char *filename,
|
||||
|
||||
if ((ctxt->wellFormed) || recovery) {
|
||||
ret = ctxt->myDoc;
|
||||
if (ctxt->input->buf->compressed > 0)
|
||||
ret->compression = 9;
|
||||
else
|
||||
ret->compression = ctxt->input->buf->compressed;
|
||||
if (ret != NULL) {
|
||||
if (ctxt->input->buf->compressed > 0)
|
||||
ret->compression = 9;
|
||||
else
|
||||
ret->compression = ctxt->input->buf->compressed;
|
||||
}
|
||||
}
|
||||
else {
|
||||
ret = NULL;
|
||||
|
Reference in New Issue
Block a user