[Poppler-bugs] [Bug 97158] New: A memory leak in PDFDoc::setDocInfoStringEntry()

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun Jul 31 23:44:12 UTC 2016


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

            Bug ID: 97158
           Summary: A memory leak in PDFDoc::setDocInfoStringEntry()
           Product: poppler
           Version: unspecified
          Hardware: Other
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: general
          Assignee: poppler-bugs at lists.freedesktop.org
          Reporter: jakubkucharski97 at gmail.com

If the value argument passed to PDFDoc::setDocInfoStringEntry() is an empty
string, then we have a memory leak, because the function returns without
freeing it, whereas when the value argument isn't NULL nor an empty string,
this function takes its ownership (meaning: the user shouldn't free value).

-- 
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/20160731/556c1e10/attachment.html>


More information about the Poppler-bugs mailing list