diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-08-01 08:39:03 +0100 |
---|---|---|
committer | Michael Stahl <Michael.Stahl@cib.de> | 2018-08-02 11:49:43 +0200 |
commit | 2c1cf211e830399ef70e1df94976871afc7c6b3e (patch) | |
tree | cf6db7217dd7041981b0a5451f26ccb0ed3a6b8a /oox | |
parent | ad79d17acc7487e476832287ddea9ebe3d067c6a (diff) |
forcepoint#54 null deref
Change-Id: I9ca04647b16f90bb2d2d4aa0d25b08a09c408fe0
Reviewed-on: https://gerrit.libreoffice.org/58383
Tested-by: Jenkins
Reviewed-by: Michael Stahl <Michael.Stahl@cib.de>
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/crypto/CryptTools.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/oox/source/crypto/CryptTools.cxx b/oox/source/crypto/CryptTools.cxx index e0b39f67cca4..1de9fafc80e0 100644 --- a/oox/source/crypto/CryptTools.cxx +++ b/oox/source/crypto/CryptTools.cxx @@ -167,6 +167,8 @@ sal_uInt32 Decrypt::update(std::vector<sal_uInt8>& output, std::vector<sal_uInt8 #endif // USE_TLS_OPENSSL #if USE_TLS_NSS + if (!mContext) + return 0; (void)PK11_CipherOp( mContext, output.data(), &outputLength, actualInputLength, input.data(), actualInputLength ); #endif // USE_TLS_NSS |