diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-10-09 09:19:18 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-10-09 14:04:30 +0200 |
commit | 728de28b8b7f334fd2102e132539a059d6a0a66f (patch) | |
tree | 2372ab70fda37c41207d6c0b1ac9bbc13955f296 /comphelper | |
parent | 5e97d1a57717f8dbf69b987d2bda8616972eec52 (diff) |
cid#1448412 subvert Untrusted value as argument
Change-Id: If2a2ed737c1807250550e3bb3a768807df08a5c1
Reviewed-on: https://gerrit.libreoffice.org/80522
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'comphelper')
-rw-r--r-- | comphelper/source/misc/backupfilehelper.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/comphelper/source/misc/backupfilehelper.cxx b/comphelper/source/misc/backupfilehelper.cxx index 97c1e9d109d6..749b9896cb0b 100644 --- a/comphelper/source/misc/backupfilehelper.cxx +++ b/comphelper/source/misc/backupfilehelper.cxx @@ -160,7 +160,7 @@ namespace // read rTarget if (osl::File::E_None == rFile->read(static_cast<void*>(aTarget.data()), nLength, nBaseRead) && nLength == nBaseRead) { - rTarget = OString(aTarget.data(), static_cast< sal_Int32 >(nLength)); + rTarget = OString(aTarget.data(), static_cast<sal_Int32>(nBaseRead)); return true; } |