commit | 7929f05710134b9b243952019b6c14066cd3ac9e | [log] [tgz] |
---|---|---|
author | yanjinjq <jiqin.ji@huawei.com> | Sun Aug 30 10:34:01 2020 +0000 |
committer | Nick Wellnhofer <wellnhofer@aevum.de> | Mon Sep 21 13:12:31 2020 +0200 |
tree | acf9a219c3b01314543415f60a10c9fbd923f48d | |
parent | e6ec58ecf7adf73335cfb40f0d5bc673681f766b [diff] |
Fix SEGV in xmlSAXParseFileWithData Fixes #181.
diff --git a/parser.c b/parser.c index be14c32..f779eb6 100644 --- a/parser.c +++ b/parser.c
@@ -14077,7 +14077,7 @@ 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