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

Caolán McNamara caolanm at redhat.com
Fri Jan 13 11:43:14 UTC 2017


 vcl/source/filter/ixpm/xpmread.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 14d9b3519adac8543b52ddb84e49eecbdd1d9eb2
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Jan 13 11:41:55 2017 +0000

    ofz: ensure all not explicitly set indexes are zero
    
    Change-Id: Idbe6ceeb61d3dfe26f281349181e7a60f7e59000

diff --git a/vcl/source/filter/ixpm/xpmread.cxx b/vcl/source/filter/ixpm/xpmread.cxx
index 968e6a3..d9d237d 100644
--- a/vcl/source/filter/ixpm/xpmread.cxx
+++ b/vcl/source/filter/ixpm/xpmread.cxx
@@ -217,6 +217,7 @@ ReadState XPMReader::ReadXPM( Graphic& rGraphic )
                             if ( mnCpp == 2 )   // by using a 64kb indexing table
                             {
                                 mpFastColorTable = new sal_uInt8[ 256 * 256 ];
+                                memset(mpFastColorTable, 0, 255 * 255);
                                 for ( pPtr = mpColMap, i = 0; i < mnColors; i++, pPtr += mnCpp + 4 )
                                 {
                                     sal_uLong   j =  pPtr[ 0 ] << 8;


More information about the Libreoffice-commits mailing list