Kaydet (Commit) db96add4 authored tarafından Markus Mohrhard's avatar Markus Mohrhard Kaydeden (comit) Markus Mohrhard

fix crash during file format detection, related #i101863#

Change-Id: I2aec2e95f49ab70a9e94c5d52f70855f4381a24e
üst 2bf2dee0
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment