vcl/inc/graphic/GraphicFormatDetector.hxx   |    2 +-
 vcl/source/filter/GraphicFormatDetector.cxx |    1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

New commits:
commit f4f869400922e8803f4ece673f26a31983be052b
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Thu Aug 11 20:54:09 2022 +0100
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Fri Aug 12 10:16:36 2022 +0200

    cid#1507888 Uninitialized scalar field
    
    Change-Id: I64747e43f76d0f214efc4bd964795517561d9693
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138163
    Tested-by: Caolán McNamara <caol...@redhat.com>
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

diff --git a/vcl/inc/graphic/GraphicFormatDetector.hxx 
b/vcl/inc/graphic/GraphicFormatDetector.hxx
index 5d5ff7f9ece3..a9cb94320a0b 100644
--- a/vcl/inc/graphic/GraphicFormatDetector.hxx
+++ b/vcl/inc/graphic/GraphicFormatDetector.hxx
@@ -193,8 +193,8 @@ private:
     sal_uInt8* checkAndUncompressBuffer(sal_uInt8* aUncompressedBuffer, 
sal_uInt32 nSize,
                                         sal_uInt64& nDecompressedSize);
     bool mbExtendedInfo;
-    GraphicMetadata maMetadata;
     bool mbWasCompressed;
+    GraphicMetadata maMetadata;
 };
 }
 
diff --git a/vcl/source/filter/GraphicFormatDetector.cxx 
b/vcl/source/filter/GraphicFormatDetector.cxx
index 4cf30e6e8571..e2345208d6f6 100644
--- a/vcl/source/filter/GraphicFormatDetector.cxx
+++ b/vcl/source/filter/GraphicFormatDetector.cxx
@@ -347,6 +347,7 @@ GraphicFormatDetector::GraphicFormatDetector(SvStream& 
rStream, OUString aFormat
     , mnStreamPosition(0)
     , mnStreamLength(0)
     , mbExtendedInfo(bExtendedInfo)
+    , mbWasCompressed(false)
     , maMetadata()
 {
 }

Reply via email to