Summary: | LibreOffice crashes when creating digitally signed PDF | ||
---|---|---|---|
Product: | LibreOffice | Reporter: | Markus Wernig <public> |
Component: | Printing and PDF export | Assignee: | Not Assigned <libreoffice-bugs> |
Status: | NEW --- | QA Contact: | |
Severity: | normal | ||
Priority: | medium | CC: | gokcen.eraslan, michael.meeks, public |
Version: | 4.4.0.0.alpha0+ Master | ||
Hardware: | Other | ||
OS: | All | ||
See Also: |
https://bugs.freedesktop.org/show_bug.cgi?id=66701 https://bugs.freedesktop.org/show_bug.cgi?id=87030 |
||
Whiteboard: | target:4.5.0 | ||
i915 platform: | i915 features: | ||
Bug Depends on: | |||
Bug Blocks: | 83940 | ||
Attachments: |
valgrind output
test document resulting pdf, signature is all zeroes valgrind trace LO 4.4.0.0 crashing hardtoken signing file (not PDF) |
Description
Markus Wernig
2014-09-16 16:23:20 UTC
Created attachment 106381 [details]
test document
The test document is signed with the same key/signature (File->Digital Signatures) that causes LO to crash when trying to sign the PDF.
So it seems that the logic to sign with that token is there, but somehow is used differently when creating PDFs.
Created attachment 106382 [details]
resulting pdf, signature is all zeroes
Created attachment 106385 [details]
valgrind trace LO 4.4.0.0 crashing hardtoken signing file (not PDF)
Not sure if this should go into a separate bug, please advise.
I ran LO under valgrind and it crashed when trying to sign the ODF itself under File->Digital Signatures (with the key from the SigG), producing the output in attachment 106385 [details].
Thanks; nice valgrind trace: ==12945== Address 0x1c is not stack'd, malloc'd or (recently) free'd Looks strongly as if a NULL pointer is getting a struct offset & then dereferenced somewhere in that stack. Just had a chance to verify. The same behaviour occurs on OSX (10.9.5). LO just crashes when the qualified signature is used for PDF signing. The same operation succeeds when signing the ODF. Tor Lillqvist committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=cbf0c9f8332be9abfed6016f9708e3260331eb2d Tentative fix for fdo#83937 It will be available in 4.5.0. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback. Just tested with a fresh build. LO doesn't crash anymore, but is also not sign the PDF with any qualified (SigG) certificate. An error is displayed that says that "Signature generation failed". |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.