diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-03-11 20:23:31 +0000 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2021-10-11 18:45:16 +0200 |
commit | 256e1948ed59dedaf5ca7ce6d12e465f15649899 (patch) | |
tree | 82a0e505aae8d839ab98d88871379cc2cb0a1fdd | |
parent | 6eb9ec5003a69b283f249606d30cb08877fa93e6 (diff) |
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@allotropia.de>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112412
(cherry picked from commit 52a23d595b820cab27d76d0e7c129f2757c762d6)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113050
Tested-by: Michael Stahl <michael.stahl@allotropia.de>
-rw-r--r-- | xmlsecurity/source/helper/xmlsignaturehelper.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xmlsecurity/source/helper/xmlsignaturehelper.cxx b/xmlsecurity/source/helper/xmlsignaturehelper.cxx index 0bc850b9af4f..4528d365f4bc 100644 --- a/xmlsecurity/source/helper/xmlsignaturehelper.cxx +++ b/xmlsecurity/source/helper/xmlsignaturehelper.cxx @@ -404,6 +404,7 @@ bool XMLSignatureHelper::ReadAndVerifySignatureStorageStream(const css::uno::Ref catch(const uno::Exception&) { DBG_UNHANDLED_EXCEPTION("xmlsecurity.helper"); + mbError = true; } mpXSecController->releaseSignatureReader(); |