Kaydet (Commit) 72edadf1 authored tarafından Michael Stahl's avatar Michael Stahl

filter: valgrind uninitialized nDataLen warning in filter_tiff_test

Change-Id: I70e38970394ca291de2de184b80bb5bb7c2cccac
üst 56b2bb53
...@@ -1229,6 +1229,10 @@ bool TIFFReader::ReadTIFF(SvStream & rTIFF, Graphic & rGraphic ) ...@@ -1229,6 +1229,10 @@ bool TIFFReader::ReadTIFF(SvStream & rTIFF, Graphic & rGraphic )
// loop through tags: // loop through tags:
for( i = 0; i < nNumTags; i++ ) for( i = 0; i < nNumTags; i++ )
{ {
nTagType = 0;
nDataType = USHRT_MAX;
nDataLen = 0;
nOffset = 0;
pTIFF->ReadUInt16( nTagType ).ReadUInt16( nDataType ).ReadUInt32( nDataLen ).ReadUInt32( nOffset ); pTIFF->ReadUInt16( nTagType ).ReadUInt16( nDataType ).ReadUInt32( nDataLen ).ReadUInt32( nOffset );
if( DataTypeSize() * nDataLen > 4 ) if( DataTypeSize() * nDataLen > 4 )
......
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