cid#1608083 Overflowed constant

Change-Id: I1aaa2ca5711b932676621ee37b00fd0683593214
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177619
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
This commit is contained in:
Caolán McNamara 2024-12-01 16:08:57 +00:00
parent 1c8d7d826f
commit 90248dca6b

View file

@ -4857,7 +4857,14 @@ void PPTStyleTextPropReader::ReadParaProps(SvStream& rIn, const DffRecordHeader&
std::min(sal_uInt16(8),
aParaPropSet.mxParaSet->mnDepth);
nCharCount--;
if (nCharCount > 0)
--nCharCount;
else
{
SAL_WARN("filter.ms", "Suspicious 0 CharCount");
// will clip to legal length in later check in this loop
nCharCount = std::numeric_limits<sal_uInt32>::max();
}
rIn.ReadUInt32( nMask );
aSet.mnAttrSet = nMask & 0x207df7;