diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-01-13 11:41:55 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-01-13 11:42:46 +0000 |
commit | 14d9b3519adac8543b52ddb84e49eecbdd1d9eb2 (patch) | |
tree | 042d35d278125d6ec5bf9047c2c96e4647825b05 | |
parent | 414ede0435645a2ebf8f1476435b6ec3bb248f33 (diff) |
ofz: ensure all not explicitly set indexes are zero
Change-Id: Idbe6ceeb61d3dfe26f281349181e7a60f7e59000
-rw-r--r-- | vcl/source/filter/ixpm/xpmread.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/vcl/source/filter/ixpm/xpmread.cxx b/vcl/source/filter/ixpm/xpmread.cxx index 968e6a3645a1..d9d237d8f23f 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; |