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:
Caolán McNamara
2024-10-26 21:54:46 +02:00
parent 868158d6b2
commit 40468f0eb0
+5
View File
@@ -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
}