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 /vcl | |
parent | 01b615687fe0f39c65e0e8290db434db2f1ef8ac (diff) |
V597: introduce a rtl_secureZeroMemory
Change-Id: Id28046eb318cd3b2ed0b813fd266617547cf6ee2
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/gdi/pdfwriter_impl2.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/vcl/source/gdi/pdfwriter_impl2.cxx b/vcl/source/gdi/pdfwriter_impl2.cxx index 403d3e5b54aa..1bcd5cf5fe8c 100644 --- a/vcl/source/gdi/pdfwriter_impl2.cxx +++ b/vcl/source/gdi/pdfwriter_impl2.cxx @@ -1220,9 +1220,8 @@ uno::Reference< beans::XMaterialHolder > PDFWriterImpl::initEncryption( const OU xResult.clear(); // trash temporary padded cleartext PWDs - memset( aPadOPW, 0, sizeof(aPadOPW) ); - memset( aPadUPW, 0, sizeof(aPadUPW) ); - + rtl_secureZeroMemory (aPadOPW, sizeof(aPadOPW)); + rtl_secureZeroMemory (aPadUPW, sizeof(aPadUPW)); } return xResult; } |