cid#1606758 Overflowed constant
Change-Id: Ia1a3937159186b137b40036f1872d6156ebc0512 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175685 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
This commit is contained in:
@@ -8752,6 +8752,11 @@ void ScInterpreter::ScSortBy()
|
||||
return;
|
||||
}
|
||||
pMatSrc->GetDimensions(nsC, nsR);
|
||||
if (nsC == 0 || nsR == 0)
|
||||
{
|
||||
PushIllegalArgument();
|
||||
return;
|
||||
}
|
||||
nSortCol2 = nsC - 1; // nSortCol1 = 0
|
||||
nSortRow2 = nsR - 1; // nSortRow1 = 0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user