diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-02-02 10:27:03 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-02-02 10:57:20 +0000 |
commit | 1caa8a72a63b35728abbbe006c3f18dc50d1b7cd (patch) | |
tree | 738ae281230d58b8652b0062957045050e4d7310 /sc | |
parent | abc11a4c0cdec0ed2d23a76ffece9840637dcc87 (diff) |
coverity#1242895 Untrusted loop bound
Change-Id: I2d38746e8ed23a5fb51ee94a72b5676bae3c8710
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/filter/starcalc/scflt.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/filter/starcalc/scflt.cxx b/sc/source/filter/starcalc/scflt.cxx index 19ee464f3dc3..92802a1d6393 100644 --- a/sc/source/filter/starcalc/scflt.cxx +++ b/sc/source/filter/starcalc/scflt.cxx @@ -1545,7 +1545,7 @@ void Sc10Import::LoadTables() bool bPageBreak = ((DataValue & crfSoftBreak) == crfSoftBreak); bool bManualBreak = ((DataValue & crfHardBreak) == crfHardBreak); bool bHidden = ((DataValue & crfHidden) == crfHidden); - for (SCROW l = static_cast<SCROW>(DataStart); l <= static_cast<SCROW>(DataEnd); l++) + for (SCROW l = SanitizeRow(static_cast<SCROW>(DataStart)); l <= SanitizeRow(static_cast<SCROW>(DataEnd)); ++l) { pDoc->SetRowHidden(l, l, static_cast<SCTAB> (TabNo), bHidden); pDoc->SetRowBreak(l, static_cast<SCTAB> (TabNo), bPageBreak, bManualBreak); |