<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - make it possible to extract digital signature data (also in pdfsig)"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=99271#c35">Comment # 35</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - make it possible to extract digital signature data (also in pdfsig)"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=99271">bug 99271</a>
              from <span class="vcard"><a class="email" href="mailto:huj@froreich-bioscientia.de" title="Hans-Ulrich Jüttner <huj@froreich-bioscientia.de>"> <span class="fn">Hans-Ulrich Jüttner</span></a>
</span></b>
        <pre>(In reply to Gustavo from <a href="show_bug.cgi?id=99271#c34">comment #34</a>)
<span class="quote">> Hi,

> I just tried the latest patch version against the trunk and it compiles
> fine. 
> I tried pdfsig with different PDF files on my end and it works as expected
> EXCEPT on one signed file and it crashes (coredump).

> Maybe Hans-Ulrich could take a look at it using my file:

> <a href="http://bit.ly/2u9AjQI">http://bit.ly/2u9AjQI</a></span >

I tried pdfsig with the patch and your file and it didn't crash.
It says:

Digital Signature Info of: pdfsig_error_coredump.pdf
Signature #1:
  - Signer Certificate Common Name: MICHAEL ANDREY VARGAS BARRANTES (FIRMA)
  - Signer full Distinguished Name: CN=MICHAEL ANDREY VARGAS BARRANTES
(FIRMA),OU=CIUDADANO,O=PERSONA FISICA,C=CR,givenName=MICHAEL ANDREY,SN=VARGAS
BARRANTES,serialNumber=CPF-03-0394-0670
  - Signing Time: Jul 04 2017 21:33:17
  - Signing Hash Algorithm: SHA-256
  - Signature Type: ETSI.CAdES.detached
  - Signed Ranges: [0 - 122708], [166258 - 171742]
  - Not total document signed
  - Signature Validation: Signature is Valid.
  - Certificate Validation: Certificate issuer isn't Trusted.

However, the "- Not total document signed" part is a bug.
I'll fix this with a revised patch.

<span class="quote">> 
> pdfsig does not crash without the patch, it just says 

> "Unimplemented Feature (0): Unable to validate this type of signature".

> Patched pdfsig says:

> "Signature #1:
>   - Signer Certificate Common Name: XXXXXXXXXXXXXX
> Segmentation fault (core dumped)"

> It does get the Common Name correctly.

> Cheers</span >

Concerning your crash, have you pulled the latest state of the master branch
before applying the patch? What processor architecture and system (32-bit or
64-bit) are you working on? I tried pdfsig on an i386 (32-bit) system and had
no crash as pointed out above.

Best regards
Hans-Ulrich</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>