diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-12-12 12:13:39 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-12-12 12:13:39 +0000 |
commit | 956de90c043ac43c21fb6043be338f50c4d7e055 (patch) | |
tree | 8fca422479ed939f577056c825d9662feedc9ca1 /sc | |
parent | 4f8029066aff39c2b0be5081bff6de79aa2f0002 (diff) |
coverity#1242728 Use of untrusted scalar value
and
coverity#1242836 Use of untrusted scalar value
coverity#1242927 Use of untrusted scalar value
coverity#1242937 Use of untrusted scalar value
coverity#1242942 Use of untrusted scalar value
Change-Id: I66b602c27ee78ba80baab74dfb49ae90df45cbdc
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/filter/lotus/tool.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sc/source/filter/lotus/tool.cxx b/sc/source/filter/lotus/tool.cxx index 3bc635cb0b28..03751d278999 100644 --- a/sc/source/filter/lotus/tool.cxx +++ b/sc/source/filter/lotus/tool.cxx @@ -85,6 +85,10 @@ void PutFormString(LotusContext& rContext, SCCOL nCol, SCROW nRow, SCTAB nTab, s void SetFormat(LotusContext& rContext, SCCOL nCol, SCROW nRow, SCTAB nTab, sal_uInt8 nFormat, sal_uInt8 nSt) { + nCol = SanitizeCol(nCol); + nRow = SanitizeRow(nRow); + nRow = SanitizeTab(nTab); + // PREC: nSt = default number of decimal places rContext.pDoc->ApplyAttr(nCol, nRow, nTab, *(rContext.pValueFormCache->GetAttr(nFormat, nSt))); |