[Libreoffice-commits] core.git: filter/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Sun Aug 29 18:39:15 UTC 2021


 filter/source/msfilter/svdfppt.cxx |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit 9f9d075f3f814a2c6c53063cb7f3a582f6bff514
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Sun Aug 29 15:24:50 2021 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Sun Aug 29 20:38:39 2021 +0200

    ofz: MemorySanitizer: use-of-uninitialized-value
    
    Change-Id: I9f467529458e303af371a653ef6412413db2f8a7
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121227
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/filter/source/msfilter/svdfppt.cxx b/filter/source/msfilter/svdfppt.cxx
index aae85106042b..3e3bc3a69f9c 100644
--- a/filter/source/msfilter/svdfppt.cxx
+++ b/filter/source/msfilter/svdfppt.cxx
@@ -585,6 +585,11 @@ void SdrEscherImport::ProcessClientAnchor2( SvStream& rSt, DffRecordHeader& rHd,
         r = rs;
         b = bs;
     }
+    if (!rSt.good())
+    {
+        SAL_WARN("filter.ms", "ProcessClientAnchor2: short read");
+        return;
+    }
     Scale( l );
     Scale( t );
     Scale( r );


More information about the Libreoffice-commits mailing list