Change-Id: I4c48c988667ffd9221a0e226ab9c35e1e857e9d5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148489
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
This commit is contained in:
Andrea Gelmini 2023-03-08 20:49:06 +01:00 committed by Julien Nabet
parent 082d009b6a
commit 5eae429d02

View file

@ -83,7 +83,7 @@ sal_Int32 Deflater::doDeflateBytes (uno::Sequence < sal_Int8 > &rBuffer, sal_Int
#else
nResult = z_deflate(pStream.get(), bFinish ? Z_FINISH : Z_NO_FLUSH);
#endif
// total_in / total_out may stored only in 32bit, and can owerflow during deflate
// total_in / total_out may stored only in 32bit, and can overflow during deflate
// 1 deflate call, uncompress only a few data, so only 1 overflow can happen at once.
if (pStream->total_in < nLastTotalIn)
{