check stream status
Change-Id: I27bb289288d319a93201e9c3d703114924ca258c
This commit is contained in:
BIN
vcl/qa/cppunit/graphicfilter/data/wmf/fail/hang-4.wmf
Normal file
BIN
vcl/qa/cppunit/graphicfilter/data/wmf/fail/hang-4.wmf
Normal file
Binary file not shown.
@@ -650,7 +650,7 @@ void WMFReader::ReadRecordParams( sal_uInt16 nFunc )
|
||||
pAcc = aBmp.AcquireWriteAccess();
|
||||
if ( pAcc )
|
||||
{
|
||||
for (sal_uInt16 y = 0; y < nHeight; y++ )
|
||||
for (sal_uInt16 y = 0; y < nHeight && pWMF->good(); ++y)
|
||||
{
|
||||
sal_uInt16 x = 0;
|
||||
for (sal_uInt16 scan = 0; scan < nBytesPerScan; scan++ )
|
||||
|
Reference in New Issue
Block a user