[Libreoffice-commits] core.git: vcl/source
Caolán McNamara
caolanm at redhat.com
Fri Jan 26 12:03:21 UTC 2018
vcl/source/filter/igif/gifread.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 7ed8b9e3a9685eb3b07c65b7f2912612c5c9e810
Author: Caolán McNamara <caolanm at redhat.com>
Date: Fri Jan 26 12:01:04 2018 +0000
coverity#1428609 Unintended sign extension
and
coverity#1428610 Unintended sign extension
Change-Id: Ia6de85c7c438e610983a30204bda364367750d98
diff --git a/vcl/source/filter/igif/gifread.cxx b/vcl/source/filter/igif/gifread.cxx
index 78ed3036e67f..30cb0c674813 100644
--- a/vcl/source/filter/igif/gifread.cxx
+++ b/vcl/source/filter/igif/gifread.cxx
@@ -662,7 +662,7 @@ void GIFReader::CreateNewBitmaps()
aAnimBmp.eDisposal = Disposal::Not;
nAnimationByteSize += aAnimBmp.aBmpEx.GetSizeBytes();
- nAnimationMinFileData += nImageWidth * nImageHeight / 2560;
+ nAnimationMinFileData += static_cast<sal_uInt64>(nImageWidth) * nImageHeight / 2560;
aAnimation.Insert( aAnimBmp );
if( aAnimation.Count() == 1 )
More information about the Libreoffice-commits
mailing list