{TIFFTAG_IMAGESOURCEDATA,-3,-3,TIFF_UNDEFINED,0,TIFF_SETGET_C32_UINT8,TIFF_SETGET_UNDEFINED,FIELD_CUSTOM,1,1,"Adobe Photoshop Document Data Block",NULL},
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);
...
...
@@ -5069,17 +5423,19 @@ TIFFFetchNormalTag(TIFF* tif, TIFFDirEntry* dp, int recover)
{
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
o=_TIFFmalloc((uint32_t)dp->tdir_count+1);
/* TIFFReadDirEntryArrayWithLimit() ensures this can't be larger than MAX_SIZE_TAG_DATA */