diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-12-09 13:28:07 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-12-09 14:13:26 +0000 |
commit | b5fc1a479080ef3f17237bee99b5596767a2e438 (patch) | |
tree | 253c230cf6a093061622f664d58964b0bd0ec697 /sc | |
parent | 4c951ee83f8a554f1d3f94c46b9447d7d1c3bafa (diff) |
coverity#1242793 Untrusted value as argument
and
coverity#1242945 Untrusted value as argument
Change-Id: Ie35f7ca0967366a7854bfc26085f84ce7624559f
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/filter/lotus/lotimpop.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/filter/lotus/lotimpop.cxx b/sc/source/filter/lotus/lotimpop.cxx index c5017c90ec2e..6c6d2ece628d 100644 --- a/sc/source/filter/lotus/lotimpop.cxx +++ b/sc/source/filter/lotus/lotimpop.cxx @@ -335,7 +335,7 @@ void ImportLotus::NamedSheet( void ) OUString aName; Read(aName); - SCTAB nLTab(static_cast<SCTAB>(nTmpTab)); + SCTAB nLTab(SanitizeTab(static_cast<SCTAB>(nTmpTab))); if (pD->HasTable(nLTab)) pD->RenameTab(nLTab, aName); @@ -395,7 +395,7 @@ void ImportLotus::_Row( const sal_uInt16 nRecLen ) sal_uInt16 nTmpRow(0); Read(nTmpRow); - SCROW nRow(static_cast<SCROW>(nTmpRow)); + SCROW nRow(SanitizeRow(static_cast<SCROW>(nTmpRow))); sal_uInt16 nHeight(0); Read(nHeight); |