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

coverity#705542 Unintentional integer overflow

Change-Id: I87712c71689d45259bc9e4e2f71c92375bc887ea
üst 6c7f1e1b
...@@ -946,7 +946,7 @@ bool Bitmap::ImplPopArt( const BmpFilterParam* /*pFilterParam*/, const Link* /*p ...@@ -946,7 +946,7 @@ 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 = 1L << pWriteAcc->GetBitCount(); const sal_uLong nEntryCount = 1UL << pWriteAcc->GetBitCount();
sal_uLong n; sal_uLong n;
PopArtEntry* pPopArtTable = new PopArtEntry[ nEntryCount ]; PopArtEntry* pPopArtTable = new PopArtEntry[ nEntryCount ];
......
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