[Poppler-bugs] [Bug 89952] New: Memory leak with duplicate font

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Apr 8 00:00:27 PDT 2015


https://bugs.freedesktop.org/show_bug.cgi?id=89952

            Bug ID: 89952
           Summary: Memory leak with duplicate font
           Product: poppler
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: medium
         Component: cairo backend
          Assignee: poppler-bugs at lists.freedesktop.org
          Reporter: jason at aquaticape.us

Created attachment 114946
  --> https://bugs.freedesktop.org/attachment.cgi?id=114946&action=edit
PDF with duplicate TrueType fonts

Attached PDF has a duplicated font which causes a memory leak.  Output of
valgrind --tool=memcheck --leak-check=full --show-leak-kinds=definite
pdftocairo -png pdf/CairoDoubleTrueType.pdf a :

==10368== 4,096 bytes in 1 blocks are definitely lost in loss record 129 of 137
==10368==    at 0x4C28C20: malloc (vg_replace_malloc.c:296)
==10368==    by 0x50553B8: gmalloc(unsigned long, bool) (gmem.cc:110)
==10368==    by 0x5055425: gmalloc (gmem.cc:120)
==10368==    by 0x4F45C04: Stream::toUnsignedChars(int*, int, int)
(Stream.h:147)
==10368==    by 0x4FA5036: GfxFont::readEmbFontFile(XRef*, int*)
(GfxFont.cc:908)
==10368==    by 0x41A3F1: CairoFreeTypeFont::create(GfxFont*, XRef*,
FT_LibraryRec_*, bool) (CairoFontEngine.cc:433)
==10368==    by 0x41B5CE: CairoFontEngine::getFont(GfxFont*, PDFDoc*, bool,
XRef*) (CairoFontEngine.cc:818)
==10368==    by 0x40E2F3: CairoOutputDev::updateFont(GfxState*)
(CairoOutputDev.cc:631)
==10368==    by 0x4F99E20: Gfx::opShowText(Object*, int) (Gfx.cc:3803)
==10368==    by 0x4F89F6B: Gfx::execOp(Object*, Object*, int) (Gfx.cc:904)
==10368==    by 0x4F8989C: Gfx::go(bool) (Gfx.cc:763)
==10368==    by 0x4F896D0: Gfx::display(Object*, bool) (Gfx.cc:729)

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/poppler-bugs/attachments/20150408/100594b9/attachment.html>


More information about the Poppler-bugs mailing list