Kaydet (Commit) 3c42d5e4 authored tarafından Noel Grandin's avatar Noel Grandin

cid#705542 Unintentional integer overflow

Change-Id: Ibd3ef676de7d99ebdd273ee85665ddf9ec0f9c10
üst f51640c5
...@@ -946,8 +946,8 @@ bool Bitmap::ImplPopArt( const BmpFilterParam* /*pFilterParam*/, const Link* /*p ...@@ -946,8 +946,8 @@ bool Bitmap::ImplPopArt( const BmpFilterParam* /*pFilterParam*/, const Link* /*p
{ {
const long nWidth = pWriteAcc->Width(); const long nWidth = pWriteAcc->Width();
const long nHeight = pWriteAcc->Height(); const long nHeight = pWriteAcc->Height();
const sal_uLong nEntryCount = 1 << pWriteAcc->GetBitCount(); const sal_uLong nEntryCount = 1L << pWriteAcc->GetBitCount();
sal_uLong n; sal_uLong n;
PopArtEntry* pPopArtTable = new PopArtEntry[ nEntryCount ]; PopArtEntry* pPopArtTable = new PopArtEntry[ nEntryCount ];
for( n = 0; n < nEntryCount; n++ ) for( n = 0; n < nEntryCount; n++ )
......
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