diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-12-11 21:05:40 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-12-11 21:05:40 +0000 |
commit | 0741a86d4bf87c6231bc2e02ee41b00d19a0695e (patch) | |
tree | 6b77f01204bf24431f2185d6e226fc1e4e01a9e8 | |
parent | d4fb53e4b4659e144488223730609f30788cc51e (diff) |
coverity#1242939 Untrusted value as argument
Change-Id: I7d93f9ef4a0821ee3ab9526abd90b8aefe895ded
-rw-r--r-- | sc/source/filter/starcalc/scflt.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/filter/starcalc/scflt.cxx b/sc/source/filter/starcalc/scflt.cxx index 870a68f527f6..25b350dcf64a 100644 --- a/sc/source/filter/starcalc/scflt.cxx +++ b/sc/source/filter/starcalc/scflt.cxx @@ -2310,8 +2310,8 @@ void Sc10Import::LoadObjects() nStartX += (long) ( GraphHeader.x / nPPTX * HMM_PER_TWIPS ); long nSizeX = (long) ( GraphHeader.w / nPPTX * HMM_PER_TWIPS ); long nStartY = pDoc->GetRowHeight( 0, - static_cast<SCsROW>(GraphHeader.CarretY) - 1, - static_cast<SCTAB>(GraphHeader.CarretZ)); + SanitizeRow(static_cast<SCsROW>(GraphHeader.CarretY) - 1), + SanitizeTab(static_cast<SCTAB>(GraphHeader.CarretZ))); nStartY = (long) ( nStartY * HMM_PER_TWIPS ); nStartY += (long) ( GraphHeader.y / nPPTY * HMM_PER_TWIPS ); long nSizeY = (long) ( GraphHeader.h / nPPTY * HMM_PER_TWIPS ); |