bddd17
Back-patch upstream patch of 2012-12-12 ("Fix TIFF_VARIABLE/TIFF_VARIABLE2
bddd17
confusion in TIFFPrintDirectory").
bddd17
bddd17
bddd17
diff -Naur tiff-4.0.3.orig/libtiff/tif_print.c tiff-4.0.3/libtiff/tif_print.c
bddd17
--- tiff-4.0.3.orig/libtiff/tif_print.c	2012-08-19 12:56:35.000000000 -0400
bddd17
+++ tiff-4.0.3/libtiff/tif_print.c	2012-12-12 16:53:05.355927641 -0500
bddd17
@@ -582,10 +582,10 @@
bddd17
 				continue;
bddd17
 
bddd17
 			if(fip->field_passcount) {
bddd17
-				if (fip->field_readcount == TIFF_VARIABLE ) {
bddd17
+				if (fip->field_readcount == TIFF_VARIABLE2 ) {
bddd17
 					if(TIFFGetField(tif, tag, &value_count, &raw_data) != 1)
bddd17
 						continue;
bddd17
-				} else if (fip->field_readcount == TIFF_VARIABLE2 ) {
bddd17
+				} else if (fip->field_readcount == TIFF_VARIABLE ) {
bddd17
 					uint16 small_value_count;
bddd17
 					if(TIFFGetField(tif, tag, &small_value_count, &raw_data) != 1)
bddd17
 						continue;