[Libreoffice-commits] core.git: sc/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Fri Mar 26 19:42:23 UTC 2021
sc/source/filter/excel/xistream.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 2ebc8433fb9be3df5404783233a93be766737d80
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Fri Mar 26 16:49:00 2021 +0000
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Fri Mar 26 20:41:33 2021 +0100
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 at redhat.com>
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 )
More information about the Libreoffice-commits
mailing list