{TIFFTAG_IMAGESOURCEDATA,-3,-3,TIFF_UNDEFINED,0,TIFF_SETGET_C32_UINT8,TIFF_SETGET_UNDEFINED,FIELD_CUSTOM,1,1,"Adobe Photoshop Document Data Block",NULL},
@@ -5063,15 +5416,15 @@ TIFFFetchNormalTag(TIFF* tif, TIFFDirEntry* dp, int recover)
mb++;
}
}
}
if(mb+1<(uint32_t)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);
elseif(mb+1>(uint32_t)dp->tdir_count)
{
uint8_t*o;
TIFFWarningExt(tif->tif_clientdata,module,"ASCII value for tag \"%s\" does not end in null byte",fip->field_name);
if((uint32_t)dp->tdir_count+1!=dp->tdir_count+1)
o=NULL;
else
/* TIFFReadDirEntryArrayWithLimit() ensures this can't be larger than MAX_SIZE_TAG_DATA */