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

coverity#1209860 try and silence Untrusted loop bound warning

we kind of have to trust this data

Change-Id: I1b74f8ad95008f5e759fd2267c879091edc5d58e
üst d634a61e
...@@ -570,6 +570,9 @@ void PixmapHolder::setBitmapDataTC( const sal_uInt8* pData, XImage* pImage ) ...@@ -570,6 +570,9 @@ void PixmapHolder::setBitmapDataTC( const sal_uInt8* pData, XImage* pImage )
sal_uInt32 nWidth = readLE32( pData+4 ); sal_uInt32 nWidth = readLE32( pData+4 );
sal_uInt32 nHeight = readLE32( pData+8 ); sal_uInt32 nHeight = readLE32( pData+8 );
if (!nWidth || !nHeight)
return;
const sal_uInt8* pBMData = pData + readLE32( pData ); const sal_uInt8* pBMData = pData + readLE32( pData );
sal_uInt32 nScanlineSize = nWidth*3; sal_uInt32 nScanlineSize = nWidth*3;
// adjust scan lines to begin on %4 boundaries // adjust scan lines to begin on %4 boundaries
......
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