[Libreoffice-commits] core.git: xmlsecurity/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Fri Mar 12 14:30:32 UTC 2021


 xmlsecurity/source/helper/xmlsignaturehelper.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit c0ec7d342bd715d9910cf28afe10a6bfa3ba28cb
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Thu Mar 11 20:23:31 2021 +0000
Commit:     Miklos Vajna <vmiklos at collabora.com>
CommitDate: Fri Mar 12 15:29:47 2021 +0100

    do same set error state as ReadAndVerifySignature does
    
    this function is nearly exactly the same as ReadAndVerifySignature
    except it doesn't set error-state on exception during parse
    
    Change-Id: Ife881f639a11d3185920ca62cc2cd22812fae36d
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112366
    Tested-by: Jenkins
    Reviewed-by: Michael Stahl <michael.stahl at allotropia.de>
    Reviewed-by: Miklos Vajna <vmiklos at collabora.com>

diff --git a/xmlsecurity/source/helper/xmlsignaturehelper.cxx b/xmlsecurity/source/helper/xmlsignaturehelper.cxx
index d91a02ad8124..18ed40ce6ac5 100644
--- a/xmlsecurity/source/helper/xmlsignaturehelper.cxx
+++ b/xmlsecurity/source/helper/xmlsignaturehelper.cxx
@@ -406,6 +406,7 @@ bool XMLSignatureHelper::ReadAndVerifySignatureStorageStream(const css::uno::Ref
     catch(const uno::Exception&)
     {
         DBG_UNHANDLED_EXCEPTION("xmlsecurity.helper");
+        mbError = true;
     }
 
     // release the signature reader


More information about the Libreoffice-commits mailing list