[Poppler-bugs] [Bug 103910] New: Segfault on pdfsig when printing Signer full Distinguished Name

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun Nov 26 09:12:24 UTC 2017


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

            Bug ID: 103910
           Summary: Segfault on pdfsig when printing Signer full
                    Distinguished Name
           Product: poppler
           Version: unspecified
          Hardware: Other
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: general
          Assignee: poppler-bugs at lists.freedesktop.org
          Reporter: int.teo at gmail.com

Created attachment 135716
  --> https://bugs.freedesktop.org/attachment.cgi?id=135716&action=edit
SignatureHandler-calloc.patch

Inside SignatureHandler.cc and specifically in
SignatureHandler::getSignerSubjectDN() the subjectName of cert is read and
returned back to validateSignature() of Form.cc and then to pdfsig.cc.
Returning to pdfsig.cc though signature_handler is destroyed and as a result
the pointer to subjectName is invalid. I am attaching a small patch that
allocates memory for subjectName before returning to avoid segfault but this
memory should be freed after usage. The patch attached is an example, not as a
patch to be merged to master :-)

-- 
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/20171126/23585ccf/attachment.html>


More information about the Poppler-bugs mailing list