emfio/source/emfuno/xemfparser.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 684885a99a1eb7ad943e9736166d4bb1468663be
Author:     Caolán McNamara <[email protected]>
AuthorDate: Sat Jan 9 19:26:59 2021 +0000
Commit:     Caolán McNamara <[email protected]>
CommitDate: Sat Jan 9 21:13:07 2021 +0100

    ofz#29443 uncaught exception
    
    Change-Id: I35b0c23f6b6df6d5e4d7e89fce84e8e0f306d8e1
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109038
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <[email protected]>

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);
 
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to