summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-10-25 16:09:04 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-10-25 16:56:21 +0100
commit2de86740476fa81425f84734402e1d4114bb8791 (patch)
tree8faca711c242c3de611ef92d24d154e6ea81316a /filter
parenteb5f54a9d7f6156e6378a487df8f952e0b587de5 (diff)
coverity#1242746 turn this around to help out coverity
Change-Id: I06cc94395e6421b7e01811b3d5f17c2677650a83
Diffstat (limited to 'filter')
-rw-r--r--filter/source/graphicfilter/ipcx/ipcx.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/filter/source/graphicfilter/ipcx/ipcx.cxx b/filter/source/graphicfilter/ipcx/ipcx.cxx
index af82bd3d748d..0960493291d4 100644
--- a/filter/source/graphicfilter/ipcx/ipcx.cxx
+++ b/filter/source/graphicfilter/ipcx/ipcx.cxx
@@ -218,7 +218,7 @@ void PCXReader::ImplReadBody(BitmapWriteAccess * pAcc)
sal_uInt8 nDat = 0, nCol = 0;
//sanity check there is enough data before trying allocation
- if (nPlanes > m_rPCX.remainingSize() / nBytesPerPlaneLin)
+ if (nBytesPerPlaneLin > m_rPCX.remainingSize() / nPlanes)
{
nStatus = false;
return;