Kaydet (Commit) b9623def authored tarafından Caolán McNamara's avatar Caolán McNamara

blank out the remainder of the buffer

Change-Id: I33b6c2ab1068b7138ce99239f56552529d5206f5
üst 33959c71
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment