diff options
author | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2014-02-11 00:08:24 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-02-11 00:18:17 +0100 |
commit | db96add4686875efce6a6e6bc6a860b249b0c210 (patch) | |
tree | 9f3af8c0c166614aa4fad07eb02f72f58f452fab /oox | |
parent | 2bf2dee04c1d698e586316c2bd18a3e34df4be77 (diff) |
fix crash during file format detection, related #i101863#
Change-Id: I2aec2e95f49ab70a9e94c5d52f70855f4381a24e
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/crypto/CryptTools.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/oox/source/crypto/CryptTools.cxx b/oox/source/crypto/CryptTools.cxx index 6c46297e3787..d9ba500e905d 100644 --- a/oox/source/crypto/CryptTools.cxx +++ b/oox/source/crypto/CryptTools.cxx @@ -61,7 +61,10 @@ void Crypto::setupContext(vector<sal_uInt8>& key, vector<sal_uInt8>& iv, CryptoT SECItem ivItem; ivItem.type = siBuffer; - ivItem.data = &iv[0]; + if(iv.empty()) + ivItem.data = NULL; + else + ivItem.data = &iv[0]; ivItem.len = iv.size(); SECItem* pIvItem = NULL; |