ofz: don't read data that isn't there
Change-Id: I7fdcb78bde8f650c1a57d34177d8993a6d8a0a2f
This commit is contained in:
@@ -995,6 +995,12 @@ bool TIFFReader::ConvertScanline(sal_Int32 nY)
|
|||||||
{
|
{
|
||||||
sal_uInt32 nByteCount = nImageWidth >> 3;
|
sal_uInt32 nByteCount = nImageWidth >> 3;
|
||||||
|
|
||||||
|
sal_uInt32 nBytesNeeded = nByteCount;
|
||||||
|
if (nImageWidth & 7)
|
||||||
|
++nBytesNeeded;
|
||||||
|
if (pt + nBytesNeeded > ptend)
|
||||||
|
return false;
|
||||||
|
|
||||||
if ( bByteSwap )
|
if ( bByteSwap )
|
||||||
{
|
{
|
||||||
sal_Int32 nx = 0;
|
sal_Int32 nx = 0;
|
||||||
|
Reference in New Issue
Block a user