Discussion:
[gs-bugs] [Bug 698691] - MuPDF - leak in pdf_load_image
b***@artifex.com
2017-10-24 14:18:46 UTC
Permalink
http://bugs.ghostscript.com/show_bug.cgi?id=698691

Bug ID: 698691
Summary: leak in pdf_load_image
Product: MuPDF
Version: 1.11
Hardware: PC
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P4
Component: mupdf
Assignee: mupdf-***@artifex.com
Reporter: ***@protonmail.com
QA Contact: gs-***@ghostscript.com
Word Size: ---

Created attachment 14410
--> http://bugs.ghostscript.com/attachment.cgi?id=14410&action=edit
PDF that reproduce the leak

Hi,

I have a leak everytime I try to use the pdf_load_image function, this can be
reproduced with the attached pcap. When compiling with ASAN on gcc I get the
attached backtrace.

It seems that fz_drop_image does not free everything that is allocated. Or it
does but a pointer was lost along the way.
--
You are receiving this mail because:
You are the QA Contact for the bug.
b***@artifex.com
2017-10-24 14:22:28 UTC
Permalink
http://bugs.ghostscript.com/show_bug.cgi?id=698691

--- Comment #1 from ***@protonmail.com ---
Created attachment 14411
--> http://bugs.ghostscript.com/attachment.cgi?id=14411&action=edit
ASAN backtrace of attached PDF

This was generated using the following command line :

$ASAN_OPTIONS=fast_unwind_on_malloc=0 ./build/debug/mutool extract
extract-png.pdf
--
You are receiving this mail because:
You are the QA Contact for the bug.
b***@artifex.com
2017-11-08 13:18:47 UTC
Permalink
http://bugs.ghostscript.com/show_bug.cgi?id=698691

Robin Watts <***@artifex.com> changed:

What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|UNCONFIRMED |RESOLVED
CC| |***@artifex.com

--- Comment #2 from Robin Watts <***@artifex.com> ---
Works fine in the current HEAD for me. Can you retest with the latest version
from git, and reopen if this is still a problem please?

Thanks.
--
You are receiving this mail because:
You are the QA Contact for the bug.
Loading...