cid#1608301 silence Overflowed constant

Change-Id: I7cca8a62307b434b34781d8b1ba3ee312cafde0a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172351
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
This commit is contained in:
Caolán McNamara
2024-08-24 10:59:01 +01:00
parent 20bd1ab3bf
commit f9b5dad09d

View File

@@ -5292,7 +5292,8 @@ void PPTStyleTextPropReader::Init( SvStream& rIn, const DffRecordHeader& rTextHe
}
}
if ( !aString.isEmpty() )
const sal_uInt32 nStringLen = aString.getLength();
if (nStringLen)
{
sal_uInt32 nCharCount;
bool bTextPropAtom = false;
@@ -5304,7 +5305,6 @@ void PPTStyleTextPropReader::Init( SvStream& rIn, const DffRecordHeader& rTextHe
sal_uInt32 nCurrentPara = 0;
size_t i = 1; // points to the next element to process
sal_uInt32 nCurrentSpecMarker = aSpecMarkerList.empty() ? 0 : aSpecMarkerList[0];
sal_uInt32 nStringLen = aString.getLength();
while ( nCharReadCnt < nStringLen )
{