Commit 7929f057 authored by yanjinjq's avatar yanjinjq Committed by Nick Wellnhofer
Browse files

Fix SEGV in xmlSAXParseFileWithData

Fixes #181.
parent e6ec58ec
Pipeline #215378 passed with stage
in 4 minutes and 17 seconds
......@@ -14077,7 +14077,7 @@ xmlSAXParseFileWithData(xmlSAXHandlerPtr sax, const char *filename,
if ((ctxt->wellFormed) || recovery) {
ret = ctxt->myDoc;
if (ret != NULL) {
if ((ret != NULL) && (ctxt->input->buf != NULL)) {
if (ctxt->input->buf->compressed > 0)
ret->compression = 9;
else
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment