diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-08-17 16:14:16 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-08-17 16:24:44 +0100 |
commit | b9623def050f8276d2d4160c01198fba201011fa (patch) | |
tree | 1403406dcccdf07ffb3f3d324657c7aa808ec270 /vcl | |
parent | 33959c71772bc943c25ac1137aa4e8f79f20077b (diff) |
blank out the remainder of the buffer
Change-Id: I33b6c2ab1068b7138ce99239f56552529d5206f5
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/filter/igif/decode.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/vcl/source/filter/igif/decode.cxx b/vcl/source/filter/igif/decode.cxx index 85b417cb62f2..3a00834eca82 100644 --- a/vcl/source/filter/igif/decode.cxx +++ b/vcl/source/filter/igif/decode.cxx @@ -47,12 +47,14 @@ GIFLZWDecompressor::GIFLZWDecompressor(sal_uInt8 cDataSize) pTable = new GIFLZWTableEntry[ 4098 ]; - for( sal_uInt16 i = 0; i < nTableSize; i++ ) + for (sal_uInt16 i = 0; i < nTableSize; ++i) { pTable[i].pPrev = NULL; pTable[i].pFirst = pTable + i; pTable[i].nData = (sal_uInt8) i; } + + memset(pTable + nTableSize, 0, sizeof(GIFLZWTableEntry) * (4098 - nTableSize)); } GIFLZWDecompressor::~GIFLZWDecompressor() |