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

emf: fix hang

Change-Id: I2410308ecccb8c5318a718bafadc7b40a98cb82b
üst 7df4d854
......@@ -663,7 +663,7 @@ bool EnhWMFReader::ReadEnhWMF()
SAL_INFO("vcl.emf", "\tGDI comment, length: " << length);
if( pWMF->good() && length >= 4 ) {
if( pWMF->good() && length >= 4 && length <= pWMF->remainingSize() ) {
sal_uInt32 id;
pWMF->ReadUInt32( id );
......
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