diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-09-26 10:40:11 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-09-26 10:40:56 +0100 |
commit | fa85dbb6519b3d9ae096cad7608779476cb3a742 (patch) | |
tree | eb57263272940760d44a97abdbaa9020e537af77 /filter | |
parent | ade276923280230a93d3fbd44b7066b2e9d5f93b (diff) |
ofz#3483 Floating-point-exception
Change-Id: I3c8dc5e4ec9ce342d2da39459c49eeb0459f76d8
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/graphicfilter/itiff/itiff.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/filter/source/graphicfilter/itiff/itiff.cxx b/filter/source/graphicfilter/itiff/itiff.cxx index 7298da030cc6..1521432eca84 100644 --- a/filter/source/graphicfilter/itiff/itiff.cxx +++ b/filter/source/graphicfilter/itiff/itiff.cxx @@ -1390,9 +1390,12 @@ bool TIFFReader::ReadTIFF(SvStream & rTIFF, Graphic & rGraphic ) bStatus = false; sal_Int32 ny = nImageLength - 1; sal_uInt32 nStrip(0); + nDiv = GetRowsPerStrip(); + if (bStatus) + bStatus = nDiv != 0; if (bStatus) { - nStrip = ny / GetRowsPerStrip() + np * nStripsPerPlane; + nStrip = ny / nDiv + np * nStripsPerPlane; if (nStrip >= aStripOffsets.size()) bStatus = false; } |