diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-01-09 19:26:59 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-01-09 21:13:07 +0100 |
commit | 684885a99a1eb7ad943e9736166d4bb1468663be (patch) | |
tree | ad529a068fdd1cfbd54ad71a94ea76df0abaea5c /emfio | |
parent | e5131d3a4b03960893810c4498b4b1af35c940d3 (diff) |
ofz#29443 uncaught exception
Change-Id: I35b0c23f6b6df6d5e4d7e89fce84e8e0f306d8e1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109038
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'emfio')
-rw-r--r-- | emfio/source/emfuno/xemfparser.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/emfio/source/emfuno/xemfparser.cxx b/emfio/source/emfuno/xemfparser.cxx index 7788802c4e1c..472f7ec9d358 100644 --- a/emfio/source/emfuno/xemfparser.cxx +++ b/emfio/source/emfuno/xemfparser.cxx @@ -109,7 +109,7 @@ namespace emfio::emfreader pStream->SetEndian(SvStreamEndian::LITTLE); sal_uInt32 nMetaType(0); - if (checkSeek(*pStream, 0x28)) + if (checkSeek(*pStream, 0x28) && pStream->remainingSize() >= 4) pStream->ReadUInt32(nMetaType); pStream->Seek(nOrgPos); |