diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-02-06 21:07:19 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-07 09:03:48 +0000 |
commit | 3ec9bccaabb4a2998c9bd29992af1d1880b284d8 (patch) | |
tree | 049ccb4431d544771338ff6d2c13e2a6ce7dcba1 /include/comphelper | |
parent | f1a09e08f2c4e19d0294737d7ff5c38147d1063c (diff) |
silence coverity#1027865 Out-of-bounds access
and coverity#1027864
Change-Id: Ic3d1b91ef77ab3510c7428b7135dd9f249d56b4b
Diffstat (limited to 'include/comphelper')
-rw-r--r-- | include/comphelper/docpasswordhelper.hxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/comphelper/docpasswordhelper.hxx b/include/comphelper/docpasswordhelper.hxx index 8c160fd32e1f..92b2731166c2 100644 --- a/include/comphelper/docpasswordhelper.hxx +++ b/include/comphelper/docpasswordhelper.hxx @@ -220,6 +220,14 @@ public: const sal_uInt16 pPassData[16], const ::com::sun::star::uno::Sequence< sal_Int8 >& aDocId ); + /** This helper function generates a byte sequence representing the + key digest value used by MSCodec_Std97 codec. + */ + + static ::com::sun::star::uno::Sequence< sal_Int8 > GenerateStd97Key( + const sal_uInt16 pPassData[16], + const sal_uInt8 pDocId[16] ); + // ------------------------------------------------------------------------ /** This helper function tries to request and verify a password to load a |