[poppler] poppler/SignatureHandler.cc

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Jun 6 09:30:46 UTC 2022


 poppler/SignatureHandler.cc |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 184efabbaed7250903169627fbbaeb505ee2f51a
Author: Albert Astals Cid <aacid at kde.org>
Date:   Mon Jun 6 11:23:51 2022 +0200

    Signatures: Don't crash if the signature doesn't have a common name
    
    Fixes KDE bug #454782

diff --git a/poppler/SignatureHandler.cc b/poppler/SignatureHandler.cc
index 6538239a..3d5494c2 100644
--- a/poppler/SignatureHandler.cc
+++ b/poppler/SignatureHandler.cc
@@ -538,6 +538,9 @@ std::string SignatureHandler::getSignerName()
     }
 
     commonName = CERT_GetCommonName(&signing_cert->subject);
+    if (!commonName) {
+        return {};
+    }
     std::string name(commonName);
     PORT_Free(commonName);
 


More information about the poppler mailing list