[Poppler-bugs] [Bug 106059] New: memory leak in Function::parse

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Apr 16 00:56:07 UTC 2018


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

            Bug ID: 106059
           Summary: memory leak in Function::parse
           Product: poppler
           Version: unspecified
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: NEW
          Severity: minor
          Priority: medium
         Component: general
          Assignee: poppler-bugs at lists.freedesktop.org
          Reporter: pdknsk at gmail.com

==20034==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 1592 byte(s) in 1 object(s) allocated from:
    #0 0x605b02 in operator new(unsigned long)
llvm/projects/compiler-rt/lib/asan/asan_new_delete.cc:93:3
    #1 0x947666 in Function::parse(Object*, std::set<int, std::less<int>,
std::allocator<int> >*) poppler/poppler/Function.cc:96:12
    #2 0x947004 in Function::parse(Object*) poppler/poppler/Function.cc:63:10
    #3 0x9046d9 in GfxGouraudTriangleShading::parse(GfxResources*, int, Dict*,
Stream*, OutputDev*, GfxState*) poppler/poppler/GfxState.cc:4841:25
    #4 0x8fa8a6 in GfxShading::parse(GfxResources*, Object*, OutputDev*,
GfxState*) poppler/poppler/GfxState.cc:3595:17
    #5 0x884da7 in GfxResources::lookupShading(char*, OutputDev*, GfxState*)
poppler/poppler/Gfx.cc:488:12
    #6 0x880b8f in Gfx::opShFill(Object*, int) poppler/poppler/Gfx.cc:2409:24
    #7 0x88b290 in Gfx::go(bool) poppler/poppler/Gfx.cc:747:7
    #8 0x889f45 in Gfx::display(Object*, bool) poppler/poppler/Gfx.cc:709:3
    #9 0x97adf0 in Page::displaySlice(OutputDev*, double, double, int, bool,
bool, int, int, int, int, bool, bool (*)(void*), void*, bool (*)(Annot*,
void*), void*, bool) poppler/poppler/Page.cc:560:10
    #10 0x7a439f in PDFDoc::displayPageSlice(OutputDev*, int, double, double,
int, bool, bool, bool, int, int, int, int, bool (*)(void*), void*, bool
(*)(Annot*, void*), void*, bool) poppler/poppler/PDFDoc.cc:550:20
    #11 0xa28303 in poppler::page_renderer::render_page(poppler::page const*,
double, double, int, int, int, int, poppler::rotation_enum) const
poppler/cpp/poppler-page-renderer.cpp:180:13

...

SUMMARY: AddressSanitizer: 2648 byte(s) leaked in 3 allocation(s).

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


More information about the Poppler-bugs mailing list