[Poppler-bugs] [Bug 96529] New: PDFDoc::saveIncrementalUpdate() saves the trailer dict twice

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Jun 14 19:35:01 UTC 2016


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

            Bug ID: 96529
           Summary: PDFDoc::saveIncrementalUpdate() saves the trailer dict
                    twice
           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

Created attachment 124534
  --> https://bugs.freedesktop.org/attachment.cgi?id=124534&action=edit
reproduce.cpp

For some reason PDFDoc::saveIncrementalUpdate() saves the trailer dict twice.
If you comment out the lines from "Dict *trailerDict = [...]" to "delete
trailerDict;", then it saves the trailer dict once. It appears that it leaves
the *old* one (because tail output is without Unicode-caused asterisks).

Steps to reproduce:
1. Compile the attached cpp file. (It requires giving compiler the path to
poppler core headers with the -I flag.)
2. Run the compiled program in a directory with an example PDF file called
"in.pdf". (I will provide one in the next attachment.)
3. Run "tail -n 20" on the output pdfs. From that it's clear that the problem
is somewhere in PDFDoc::saveIncrementalUpdate().

-- 
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/20160614/b82a39c0/attachment.html>


More information about the Poppler-bugs mailing list