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:
parent
1c8d7d826f
commit
90248dca6b
1 changed files with 8 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue