Kaydet (Commit) 2de86740 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1242746 turn this around to help out coverity

Change-Id: I06cc94395e6421b7e01811b3d5f17c2677650a83
üst eb5f54a9
...@@ -218,7 +218,7 @@ void PCXReader::ImplReadBody(BitmapWriteAccess * pAcc) ...@@ -218,7 +218,7 @@ void PCXReader::ImplReadBody(BitmapWriteAccess * pAcc)
sal_uInt8 nDat = 0, nCol = 0; sal_uInt8 nDat = 0, nCol = 0;
//sanity check there is enough data before trying allocation //sanity check there is enough data before trying allocation
if (nPlanes > m_rPCX.remainingSize() / nBytesPerPlaneLin) if (nBytesPerPlaneLin > m_rPCX.remainingSize() / nPlanes)
{ {
nStatus = false; nStatus = false;
return; return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment