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

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Mon Sep 6 07:43:28 UTC 2021


 filter/source/graphicfilter/icgm/class7.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 07e4ec83ffbcd42264e7c1429a69048109de2182
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Sun Sep 5 20:04:50 2021 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Mon Sep 6 09:42:55 2021 +0200

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

diff --git a/filter/source/graphicfilter/icgm/class7.cxx b/filter/source/graphicfilter/icgm/class7.cxx
index 1b51ce98e71c..63bce3296343 100644
--- a/filter/source/graphicfilter/icgm/class7.cxx
+++ b/filter/source/graphicfilter/icgm/class7.cxx
@@ -89,7 +89,7 @@ void CGM::ImplDoClass7()
                     break;
                     case 0x2BE : /*AppData - SHWSLIDEREC*/
                     {
-                        if (mpEndValidSource - pAppData < 16)
+                        if (mpEndValidSource - pAppData < 17)
                             throw css::uno::Exception("attempt to read past end of input", nullptr);
 
                         if ( pAppData[ 16 ] == 0 )      // a blank template ?


More information about the Libreoffice-commits mailing list