diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-03-31 10:20:19 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-03-31 13:38:01 +0100 |
commit | 026b17b7d725109f586622755b435ded3673c43a (patch) | |
tree | 685262a3a279833535f2b53584e311ce290aef83 /comphelper | |
parent | 01b615687fe0f39c65e0e8290db434db2f1ef8ac (diff) |
V597: introduce a rtl_secureZeroMemory
Change-Id: Id28046eb318cd3b2ed0b813fd266617547cf6ee2
Diffstat (limited to 'comphelper')
-rw-r--r-- | comphelper/source/misc/docpasswordhelper.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/comphelper/source/misc/docpasswordhelper.cxx b/comphelper/source/misc/docpasswordhelper.cxx index fdcb8a02993a..217a75edd154 100644 --- a/comphelper/source/misc/docpasswordhelper.cxx +++ b/comphelper/source/misc/docpasswordhelper.cxx @@ -341,7 +341,7 @@ Sequence< sal_Int8 > DocPasswordHelper::GetXLHashAsSequence( rtl_digest_rawMD5 ( hDigest, reinterpret_cast<sal_uInt8*>(aResultKey.getArray()), aResultKey.getLength() ); // Erase KeyData array and leave. - memset( pKeyData, 0, sizeof(pKeyData) ); + rtl_secureZeroMemory (pKeyData, sizeof(pKeyData)); } return aResultKey; |