15 lines
499 B
Diff
15 lines
499 B
Diff
|
Index: tiff-4.4.0/libtiff/tif_dirinfo.c
|
||
|
===================================================================
|
||
|
--- tiff-4.4.0.orig/libtiff/tif_dirinfo.c
|
||
|
+++ tiff-4.4.0/libtiff/tif_dirinfo.c
|
||
|
@@ -1191,6 +1191,9 @@ _TIFFCheckFieldIsValidForCodec(TIFF *tif
|
||
|
default:
|
||
|
return 1;
|
||
|
}
|
||
|
+ if( !TIFFIsCODECConfigured(tif->tif_dir.td_compression) ) {
|
||
|
+ return 0;
|
||
|
+ }
|
||
|
/* Check if codec specific tags are allowed for the current
|
||
|
* compression scheme (codec) */
|
||
|
switch (tif->tif_dir.td_compression) {
|