coverity#1242895 Untrusted value as argument

Change-Id: I1f0d8aee19d2723861aa70f31176db08299cd9b9
This commit is contained in:
Caolán McNamara
2017-01-24 11:29:41 +00:00
parent 84568fa10a
commit ecf852299b

View File

@@ -1542,7 +1542,9 @@ void Sc10Import::LoadTables()
{
rStream.ReadUInt16( DataEnd );
rStream.ReadUInt16( DataValue );
pDoc->SetRowHeightRange(static_cast<SCROW> (DataStart), static_cast<SCROW> (DataEnd), static_cast<SCTAB> (TabNo), DataValue);
pDoc->SetRowHeightRange(SanitizeRow(static_cast<SCROW>(DataStart)),
SanitizeRow(static_cast<SCROW>(DataEnd)),
static_cast<SCTAB> (TabNo), DataValue);
DataStart = DataEnd + 1;
}
pPrgrsBar->Progress();