sc/source/filter/excel/xistream.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 2ebc8433fb9be3df5404783233a93be766737d80
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Fri Mar 26 16:49:00 2021 +0000
Commit:     Caolán McNamara <caol...@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 <caol...@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 )
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to