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:
parent
fcccd6bf9f
commit
ceec55249e
1 changed files with 3 additions and 2 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue