Kaydet (Commit) 5b597648 authored tarafından Caolán McNamara's avatar Caolán McNamara Kaydeden (comit) Andras Timar

emf: fix hang

Change-Id: I2410308ecccb8c5318a718bafadc7b40a98cb82b
(cherry picked from commit 86956330)
Reviewed-on: https://gerrit.libreoffice.org/16976Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarDavid Tardon <dtardon@redhat.com>
üst c55bce76
......@@ -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