PDF from other sources open/import with no apparent issue. But have a couple of PDF forms that File -> Open import of PDF into Draw crashes with "Bad Allocation" From Windows builds of master on hand, bibisect to 2016-12-02 -> 2016-12-08 https://cgit.freedesktop.org/libreoffice/core/log/?qt=range&q=33f5bc54aaa7fe7aa9335726e30f9c349155e04d..a238c829b209d0708714aa753fb686525411825f I don't hold the master builds for 3-7 Dec 2016. Issue is present at branch for 5.3.0b2 (a7e30712ad6d8bc9286007b37aa581983e0caba3) 2016-12-10 Issue with these two Texas Real Estate commission forms https://www.trec.texas.gov/sites/default/files/pdf-forms/36-8.pdf https://www.trec.texas.gov/sites/default/files/pdf-forms/37-5.pdf Source listed as Acrobat Distiller 11.0 [PScript5.dll ver 5.2.2], as PDF 1.6 with no document restrictions. Will attach...
Created attachment 133243 [details] sample PDF (Texas TREC form 36-8)
Created attachment 133244 [details] sample PDF (Texas TREC form 37-5)
Both PDF imported fine into builds of master through 2016-12-02. @Miklos?
On pc Debian x86-64 with master sources updated today, I don't reproduce this but had invalid signature and noticed these logs: warn:vcl.filter:7819:1:vcl/source/filter/ipdf/pdfdocument.cxx:2437: PDFObjectElement::LookupObject: no such key with reference value: V warn:xmlsecurity.pdfio:7819:1:xmlsecurity/source/pdfio/pdfdocument.cxx:290: ValidateSignature: no value warn:xmlsecurity.helper:7819:1:xmlsecurity/source/helper/pdfsignaturehelper.cxx:57: failed to determine digest match warn:vcl.filter:7819:1:vcl/source/filter/ipdf/pdfdocument.cxx:2437: PDFObjectElement::LookupObject: no such key with reference value: V warn:xmlsecurity.pdfio:7819:1:xmlsecurity/source/pdfio/pdfdocument.cxx:290: ValidateSignature: no value warn:xmlsecurity.helper:7819:1:xmlsecurity/source/helper/pdfsignaturehelper.cxx:57: failed to determine digest match warn:vcl.filter:7819:1:vcl/source/filter/ipdf/pdfdocument.cxx:2437: PDFObjectElement::LookupObject: no such key with reference value: V warn:xmlsecurity.pdfio:7819:1:xmlsecurity/source/pdfio/pdfdocument.cxx:290: ValidateSignature: no value warn:xmlsecurity.helper:7819:1:xmlsecurity/source/helper/pdfsignaturehelper.cxx:57: failed to determine digest match warn:vcl.filter:7819:1:vcl/source/filter/ipdf/pdfdocument.cxx:2437: PDFObjectElement::LookupObject: no such key with reference value: V warn:xmlsecurity.pdfio:7819:1:xmlsecurity/source/pdfio/pdfdocument.cxx:290: ValidateSignature: no value warn:xmlsecurity.helper:7819:1:xmlsecurity/source/helper/pdfsignaturehelper.cxx:57: failed to determine digest match func=xmlSecBase64CtxFinal:file=base64.c:line=283:obj=unknown:subj=outSize > 0:error=100:assertion: func=xmlSecBase64Decode:file=base64.c:line=676:obj=unknown:subj=xmlSecBase64CtxFinal:error=1:xmlsec library function failed: func=xmlSecBase64CtxFinal:file=base64.c:line=283:obj=unknown:subj=outSize > 0:error=100:assertion: func=xmlSecBase64Decode:file=base64.c:line=676:obj=unknown:subj=xmlSecBase64CtxFinal:error=1:xmlsec library function failed: func=xmlSecBase64CtxFinal:file=base64.c:line=283:obj=unknown:subj=outSize > 0:error=100:assertion: func=xmlSecBase64Decode:file=base64.c:line=676:obj=unknown:subj=xmlSecBase64CtxFinal:error=1:xmlsec library function failed: func=xmlSecBase64CtxFinal:file=base64.c:line=283:obj=unknown:subj=outSize > 0:error=100:assertion: func=xmlSecBase64Decode:file=base64.c:line=676:obj=unknown:subj=xmlSecBase64CtxFinal:error=1:xmlsec library function failed:
I can't reproduce it in Version: 5.4.0.0.alpha1+ Build ID: f12096272e684ddcd8ffa4e34dcb0a680cc594c2 CPU Threads: 4; OS Version: Linux 4.8; UI Render: default; VCL: gtk2; Locale: fo-FO (ca_ES.UTF-8); Calc: group but I can in Versión: 5.3.2.2 Id. de compilación: 6cd4f1ef626f15116896b1d8e1398b56da0d0ee1 Subproc. CPU: 1; SO: Windows 6.1; Repr. de IU: predet.; Motor de trazado: HarfBuzz; Configuración regional: ro-RO (es_ES); Calc: group
I can't reproduce it in Versión: 5.2.6.2 Id. de compilación: a3100ed2409ebf1c212f5048fbe377c281438fdc Subprocesos de CPU: 1; SO: Windows 6.1; Repr. de IU: predeterminado; Configuración regional: es-ES (es_ES); Calc: group
This seems to have begun at the below commit. Adding Cc: to Miklos Vajna; Could you possibly take a look at this one? Thanks f0e64e108dd24e7b25f9400f5cbec811ddd0708d is the first bad commit commit f0e64e108dd24e7b25f9400f5cbec811ddd0708d Author: Norbert Thiebaud <nthiebaud@gmail.com> Date: Mon Dec 5 20:49:33 2016 -0800 source 992b3c8644549218e6e2535eab7f8b239cf95a23 author Miklos Vajna <vmiklos@collabora.co.uk> 2016-12-01 13:26:55 (GMT) committer Miklos Vajna <vmiklos@collabora.co.uk> 2016-12-05 08:09:33 (GMT) commit 992b3c8644549218e6e2535eab7f8b239cf95a23 (patch) tree d8cdda5b4aa9bff3cc90a6be66aac0005396d29b parent 6d1df1b0e1189e7e0ae2181a0fdc174d1ad404d0 (diff) xmlsecurity PDF verify: last batch of various fixes
Aha, looks like indeed the bug is Windows-only; now I can now reproduce, will take a look.
(In reply to Miklos Vajna from comment #8) > Aha, looks like indeed the bug is Windows-only; now I can now reproduce, > will take a look. Yes, and both the 32-bit and 64-bit Windows builds crash with the "Bad Allocation" message.
Miklos Vajna committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=18aa83acfa243741eb4c79a2e11aec6eaf1a9f02 tdf#107782 xmlsecurity PDF verify: handle empty X509 certificate It will be available in 5.4.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.
Miklos Vajna committed a patch related to this issue. It has been pushed to "libreoffice-5-4": http://cgit.freedesktop.org/libreoffice/core/commit/?id=8f208bfc1069b1c2f4a3df17252c7da2b005b5d8&h=libreoffice-5-4 tdf#107782 xmlsecurity PDF verify: handle empty X509 certificate It will be available in 5.4.0.1. 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.
Thanks! Verified working correctly now for both import filters. On Widnows 8.1 Ent 64-bit en-US with Version: 5.5.0.0.alpha0+ Build ID: fa89a464ca9c76332f533da0ab641da5acd00b52 CPU threads: 8; OS: Windows 6.29; UI render: GL; TinderBox: Win-x86@39, Branch:master, Time: 2017-05-19_01:24:56 Locale: en-US (en_US); Calc: CL
*** Bug 107974 has been marked as a duplicate of this bug. ***
Miklos Vajna committed a patch related to this issue. It has been pushed to "libreoffice-5-3": http://cgit.freedesktop.org/libreoffice/core/commit/?id=398ab416bd552162131e74751e48d266a1f31ee9&h=libreoffice-5-3 tdf#107782 xmlsecurity PDF verify: handle empty X509 certificate It will be available in 5.3.4. 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.