[gs-commits] mupdf 1.16.1.11 Bug 701399: Fix potential double free due
[email protected] (Tor Andersson)
| Newsgroups | gmane.comp.printing.ghostscript.cvs |
|---|---|
| Message-ID | <[email protected]> |
commit fa50848fb18407e2c517631e11b822e90cd213c4 Author: Tor Andersson <[email protected]> Date: Wed Aug 14 11:33:09 2019 +0200 Bug 701399: Fix potential double free due to longjmp resetting flag. diff --git a/source/fitz/xml.c b/source/fitz/xml.c index e5f5123..7bc3dd2 100644 --- a/source/fitz/xml.c +++ b/source/fitz/xml.c @@ -726,10 +726,11 @@ fz_parse_xml(fz_context *ctx, fz_buffer *buf, int preserve_white) fz_xml root, *node; char *p = NULL; char *error; - int dofree; + int dofree = 0; unsigned char *s; size_t n; + fz_var(dofree); fz_var(p); /* ensure we are zero-terminated */ http://git.ghostscript.com/?p=mupdf.git;a=commit;h=fa50848fb18407e2c517631e11b822e90cd213c4 -- MuPDF library Artifex Software, Inc.