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

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Tue Aug 31 07:57:55 UTC 2021


 vcl/source/filter/imet/ios2met.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit a412668d8d6b90d8785d1b7a98fd44ad9bfe0f16
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Mon Aug 30 12:57:06 2021 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Tue Aug 31 09:57:19 2021 +0200

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

diff --git a/vcl/source/filter/imet/ios2met.cxx b/vcl/source/filter/imet/ios2met.cxx
index 64b29fc6ade7..aaf6f0fd2282 100644
--- a/vcl/source/filter/imet/ios2met.cxx
+++ b/vcl/source/filter/imet/ios2met.cxx
@@ -2174,7 +2174,7 @@ void OS2METReader::ReadDsc(sal_uInt16 nDscID)
 {
     switch (nDscID) {
         case 0x00f7: { // 'Specify GVM Subset'
-            sal_uInt8 nbyte;
+            sal_uInt8 nbyte(0);
             pOS2MET->SeekRel(6);
             pOS2MET->ReadUChar( nbyte );
             if      (nbyte==0x05) bCoord32=true;
@@ -2189,7 +2189,7 @@ void OS2METReader::ReadDsc(sal_uInt16 nDscID)
         {
             // 'Set Picture Descriptor'
             bool b32;
-            sal_uInt8 nbyte,nUnitType;
+            sal_uInt8 nbyte(0), nUnitType(0);
 
             pOS2MET->SeekRel(2);
             pOS2MET->ReadUChar( nbyte );
@@ -2275,7 +2275,7 @@ void OS2METReader::ReadImageData(sal_uInt16 nDataID, sal_uInt16 nDataLen)
             break;
 
         case 0x0096: { // Image IDE-Size
-            sal_uInt8 nbyte;
+            sal_uInt8 nbyte(0);
             pOS2MET->ReadUChar( nbyte ); p->nBitsPerPixel=nbyte;
             break;
         }


More information about the Libreoffice-commits mailing list