changeset 2387:9454f3b9bf7a

Open BigTIFF (64-bit) files using the custom TIFF loader. In the worst case, old libtiff versions will return a different error. See http://www.awaresystems.be/imaging/tiff/bigtiff.html for more info.
author Martin Pelikán <mpel@google.com>
date Sat, 03 Dec 2016 22:53:50 +1100
parents a22a815359f9
children 739e2e0f7f7c
files src/image-load.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/image-load.c	Wed Aug 24 17:28:23 2016 +0100
+++ b/src/image-load.c	Sat Dec 03 22:53:50 2016 +1100
@@ -614,6 +614,8 @@
 #ifdef HAVE_TIFF
 	if (il->bytes_total >= 10 &&
 	    (memcmp(il->mapped_file, "MM\0*", 4) == 0 ||
+	     memcmp(il->mapped_file, "MM\0+\0\x08\0\0", 8) == 0 ||
+	     memcmp(il->mapped_file, "II+\0\x08\0\0\0", 8) == 0 ||
 	     memcmp(il->mapped_file, "II*\0", 4) == 0))
 	     	{
 		DEBUG_1("Using custom tiff loader");