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

Caolán McNamara caolanm at redhat.com
Wed Mar 19 08:45:27 PDT 2014


 vcl/source/filter/igif/decode.cxx |   15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

New commits:
commit 3037f4d98908f64157a5522e4ba09d0ecf22c2ab
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Wed Mar 19 15:44:28 2014 +0000

    coverity#708312 Uninitialized pointer field
    
    Change-Id: I3bb28d1116e155f819b0e920a3c355b00e892c2a

diff --git a/vcl/source/filter/igif/decode.cxx b/vcl/source/filter/igif/decode.cxx
index 0dcd86d..561bf5c 100644
--- a/vcl/source/filter/igif/decode.cxx
+++ b/vcl/source/filter/igif/decode.cxx
@@ -27,12 +27,15 @@ struct GIFLZWTableEntry
     sal_uInt8               nData;
 };
 
-GIFLZWDecompressor::GIFLZWDecompressor( sal_uInt8 cDataSize ) :
-            nInputBitsBuf       ( 0 ),
-            nOutBufDataLen      ( 0 ),
-            nInputBitsBufSize   ( 0 ),
-            bEOIFound           ( false ),
-            nDataSize           ( cDataSize )
+GIFLZWDecompressor::GIFLZWDecompressor(sal_uInt8 cDataSize)
+    : pBlockBuf(NULL)
+    , nInputBitsBuf(0)
+    , nOutBufDataLen(0)
+    , nInputBitsBufSize(0)
+    , bEOIFound(false)
+    , nDataSize(cDataSize)
+    , nBlockBufSize(0)
+    , nBlockBufPos(0)
 {
     pOutBuf = new sal_uInt8[ 4096 ];
 


More information about the Libreoffice-commits mailing list