diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-03-26 16:49:00 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-03-26 20:41:33 +0100 |
commit | 2ebc8433fb9be3df5404783233a93be766737d80 (patch) | |
tree | 8829668fe8cda39e08d4293944abf50b6574cb11 | |
parent | 65b99967c4da8e57ebabc9bed98818750fc82038 (diff) |
cid#1474320 silence Untrusted allocation size
Change-Id: I919e7dad4f03e9c9b4edce1959717c344c6e6134
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113170
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | sc/source/filter/excel/xistream.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/filter/excel/xistream.cxx b/sc/source/filter/excel/xistream.cxx index f1ae53dcbd6c..f5f82e5176ff 100644 --- a/sc/source/filter/excel/xistream.cxx +++ b/sc/source/filter/excel/xistream.cxx @@ -1062,7 +1062,7 @@ bool XclImpStream::EnsureRawReadSize( sal_uInt16 nBytes ) sal_uInt16 XclImpStream::GetMaxRawReadSize( std::size_t nBytes ) const { - return static_cast< sal_uInt16 >( ::std::min< std::size_t >( nBytes, mnRawRecLeft ) ); + return static_cast<sal_uInt16>(o3tl::sanitizing_min<std::size_t>(nBytes, mnRawRecLeft)); } sal_uInt16 XclImpStream::ReadRawData( void* pData, sal_uInt16 nBytes ) |