coverity#705542 Unintentional integer overflow
Change-Id: I87712c71689d45259bc9e4e2f71c92375bc887ea
This commit is contained in:
@@ -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 ];
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user