summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-05-14 09:45:34 +0200
committerNoel Grandin <noel@peralex.com>2014-05-14 09:49:08 +0200
commit8c004aa108f7b712b377469139baf9f0f53d0c93 (patch)
tree42a717e655345f5f750e14975d332c0b5a3ea45b /package
parent3c42d5e41478cb5abd4f592633d6eb2f4145c6db (diff)
cid#982783 Unintentional integer overflow
Change-Id: Ida52d1fbe3d84c9c0070c91ae24cae58dc4aa13f
Diffstat (limited to 'package')
-rw-r--r--package/source/zipapi/ZipFile.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/source/zipapi/ZipFile.cxx b/package/source/zipapi/ZipFile.cxx
index 8444dceadf2b..2c8d7e856454 100644
--- a/package/source/zipapi/ZipFile.cxx
+++ b/package/source/zipapi/ZipFile.cxx
@@ -1097,7 +1097,7 @@ void ZipFile::getSizeAndCRC( sal_Int64 nOffset, sal_Int64 nCompressedSize, sal_I
sal_Int32 nBlockSize = static_cast< sal_Int32 > (::std::min( nCompressedSize, static_cast< sal_Int64 >( 32000 ) ) );
aGrabber.seek( nOffset );
- for ( int ind = 0;
+ for ( sal_Int64 ind = 0;
!aInflaterLocal.finished() && aGrabber.readBytes( aBuffer, nBlockSize ) && ind * nBlockSize < nCompressedSize;
ind++ )
{