Skip to content

Commit bd8086e

Browse files
committed
Added extra check to prevent error when ignoring tags in ImageMagick.
1 parent b9e5ad7 commit bd8086e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libtiff/tif_dirinfo.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1403,7 +1403,8 @@ int TIFFMergeFieldInfo(TIFF *tif, const TIFFFieldInfo info[], uint32_t n)
14031403
tp->field_bit = info[i].field_bit;
14041404
tp->field_oktochange = info[i].field_oktochange;
14051405
tp->field_passcount = info[i].field_passcount;
1406-
if (info[i].field_name == NULL)
1406+
if (info[i].field_name == NULL &&
1407+
info[i].field_bit != FIELD_IGNORE)
14071408
{
14081409
TIFFErrorExtR(tif, module,
14091410
"Field_name of %d.th allocation tag %d is NULL", i,

0 commit comments

Comments
 (0)