cid#1607844 Overflowed integer argument

Change-Id: If6fc59a827983840c27701382c201ee16e690472
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172254
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
This commit is contained in:
Caolán McNamara 2024-08-22 12:59:59 +01:00
parent fcccd6bf9f
commit ceec55249e

View file

@ -800,8 +800,9 @@ void LwpTableLayout::ParseTable()
{
sal_uInt16 nStartHeadRow;
sal_uInt16 nEndHeadRow;
pTableHeading->GetStartEndRow(nStartHeadRow,nEndHeadRow);
if (nStartHeadRow == 0)
pTableHeading->GetStartEndRow(nStartHeadRow, nEndHeadRow);
SAL_WARN_IF(nEndHeadRow == SAL_MAX_UINT16, "lwp", "invalid End Head Row of: " << nEndHeadRow);
if (nStartHeadRow == 0 && nEndHeadRow != SAL_MAX_UINT16)
{
if (comphelper::IsFuzzing() && nEndHeadRow - nStartHeadRow > 128)
{