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

avoid hang in short pbm

Change-Id: I9b7f0832a4dc231e1e8f963858c155e3cd392667
üst 7ba160ce
......@@ -62,6 +62,10 @@ void PpmFilterTest::testCVEs()
testDir(OUString(),
getURLFromSrc("/filter/qa/cppunit/data/ppm/"),
OUString());
testDir(OUString(),
getURLFromSrc("/filter/qa/cppunit/data/pbm/"),
OUString());
}
CPPUNIT_TEST_SUITE_REGISTRATION(PpmFilterTest);
......
......@@ -179,7 +179,7 @@ bool PBMReader::ImplReadHeader()
}
while ( !bFinished )
{
if ( mrPBM.GetError() )
if (!mrPBM.good())
return false;
mrPBM.ReadUChar( nDat );
......
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