@@ -4881,17 +4941,18 @@ TIFFFetchNormalTag(TIFF* tif, TIFFDirEntry* dp, int recover)
err=TIFFReadDirEntryByteArray(tif,dp,&data);
if(err==TIFFReadDirEntryErrOk)
{
uint8*ma;
uint32mb;
uint32mb=0;
intn;
ma=data;
mb=0;
while(mb<(uint32)dp->tdir_count)
if(data!=NULL)
{
if(*ma==0)
break;
ma++;
mb++;
uint8*ma=data;
while(mb<(uint32)dp->tdir_count)
{
if(*ma==0)
break;
ma++;
mb++;
}
}
if(mb+1<(uint32)dp->tdir_count)
TIFFWarningExt(tif->tif_clientdata,module,"ASCII value for tag \"%s\" contains null byte in value; value incorrectly truncated during reading due to implementation limitations",fip->field_name);
...
...
@@ -5141,11 +5202,11 @@ TIFFFetchNormalTag(TIFF* tif, TIFFDirEntry* dp, int recover)