[Libreoffice-commits] libcdr.git: src/lib

David Tardon dtardon at redhat.com
Sat Mar 17 10:38:20 UTC 2018


 src/lib/CDRParser.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 10fa0f73c0cf39bc03a39e08c49084ed7bc9ac9e
Author: David Tardon <dtardon at redhat.com>
Date:   Sat Mar 17 11:35:24 2018 +0100

    ofz#6948 ensure pattern dims are initialized
    
    Change-Id: Id03ebbaadf8e6a5b752b429da19639f024bbba86

diff --git a/src/lib/CDRParser.cpp b/src/lib/CDRParser.cpp
index 1dd4bfa..4e7956e 100644
--- a/src/lib/CDRParser.cpp
+++ b/src/lib/CDRParser.cpp
@@ -2338,7 +2338,7 @@ void libcdr::CDRParser::readBmpf(librevenge::RVNGInputStream *input, unsigned le
   if (!_redirectX6Chunk(&input, length))
     throw GenericException();
   unsigned patternId = readU32(input);
-  unsigned width, height;
+  unsigned width{}, height{};
   std::vector<unsigned char> pattern;
   readBmpPattern(width, height, pattern, length-4, input);
   m_collector->collectBmpf(patternId, width, height, pattern);


More information about the Libreoffice-commits mailing list