summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-06 21:07:19 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-07 09:03:48 +0000
commit3ec9bccaabb4a2998c9bd29992af1d1880b284d8 (patch)
tree049ccb4431d544771338ff6d2c13e2a6ce7dcba1 /include
parentUse rtl::Reference (diff)
downloadcore-3ec9bccaabb4a2998c9bd29992af1d1880b284d8.tar.gz
core-3ec9bccaabb4a2998c9bd29992af1d1880b284d8.zip
silence coverity#1027865 Out-of-bounds access
and coverity#1027864 Change-Id: Ic3d1b91ef77ab3510c7428b7135dd9f249d56b4b
Diffstat (limited to 'include')
-rw-r--r--include/comphelper/docpasswordhelper.hxx8
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