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

valgrind+afl: initialize cSize

Change-Id: Ia1b553fed82645023c28467b837b51bd959adbbe
üst e76098b2
......@@ -214,16 +214,15 @@ void GIFReader::ReadPaletteEntries( BitmapPalette* pPal, sal_uLong nCount )
bool GIFReader::ReadExtension()
{
sal_uInt8 cFunction;
sal_uInt8 cSize;
sal_uInt8 cByte;
bool bRet = false;
bool bOverreadDataBlocks = false;
// Extension-Label
sal_uInt8 cFunction(0);
rIStm.ReadUChar( cFunction );
if( NO_PENDING( rIStm ) )
{
sal_uInt8 cSize(0);
// Block length
rIStm.ReadUChar( cSize );
......@@ -232,12 +231,12 @@ bool GIFReader::ReadExtension()
// 'Graphic Control Extension'
case( 0xf9 ) :
{
sal_uInt8 cFlags;
rIStm.ReadUChar( cFlags );
rIStm.ReadUInt16( nTimer );
rIStm.ReadUChar( nGCTransparentIndex );
rIStm.ReadUChar( cByte );
sal_uInt8 cFlags(0);
rIStm.ReadUChar(cFlags);
rIStm.ReadUInt16(nTimer);
rIStm.ReadUChar(nGCTransparentIndex);
sal_uInt8 cByte(0);
rIStm.ReadUChar(cByte);
if ( NO_PENDING( rIStm ) )
{
......@@ -267,6 +266,7 @@ bool GIFReader::ReadExtension()
// NetScape-Extension
if( aAppId == "NETSCAPE" && aAppCode == "2.0" && cSize == 3 )
{
sal_uInt8 cByte(0);
rIStm.ReadUChar( cByte );
// Loop-Extension
......@@ -293,6 +293,7 @@ bool GIFReader::ReadExtension()
}
else if ( aAppId == "STARDIV " && aAppCode == "5.0" && cSize == 9 )
{
sal_uInt8 cByte(0);
rIStm.ReadUChar( cByte );
// Loop extension
......
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