diff options
author | Simon Bünzli <zeniko@gmail.com> | 2014-01-02 09:41:49 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2014-01-02 20:04:36 +0000 |
commit | 8dee8f716887aee52e2fba19a7ae0e2a443cb6df (patch) | |
tree | 37656b6192a7a2e8cae6c6818a672058570b544f /source/pdf | |
parent | 217dbbba11ba15e8753e7c5c57bb226df446cf59 (diff) | |
download | mupdf-8dee8f716887aee52e2fba19a7ae0e2a443cb6df.tar.xz |
fix memory leak in pdf_repair_xref
The 0 null object is leaked if a document refers to 0 0 obj before
requiring a delayed reparation (seen e.g. with 3324.pdf.asan.3.2585).
Diffstat (limited to 'source/pdf')
-rw-r--r-- | source/pdf/pdf-repair.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/source/pdf/pdf-repair.c b/source/pdf/pdf-repair.c index 0e1f0bdf..bf0e2d83 100644 --- a/source/pdf/pdf-repair.c +++ b/source/pdf/pdf-repair.c @@ -473,7 +473,6 @@ pdf_repair_xref(pdf_document *doc, pdf_lexbuf *buf) entry->ofs = 0; entry->gen = 65535; entry->stm_ofs = 0; - entry->obj = NULL; next = 0; for (i = pdf_xref_len(doc) - 1; i >= 0; i--) |