diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-10-25 16:09:04 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-10-25 16:56:21 +0100 |
commit | 2de86740476fa81425f84734402e1d4114bb8791 (patch) | |
tree | 8faca711c242c3de611ef92d24d154e6ea81316a /filter | |
parent | eb5f54a9d7f6156e6378a487df8f952e0b587de5 (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.cxx | 2 |
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; |