In t2p_readwrite_pdf_image_tile(), the condition in an if-statement is wrong and causes heap-based buffer overflow.
http://bugzilla.maptools.org/show_bug.cgi?id=2640
https://nvd.nist.gov/vuln/detail/CVE-2016-10094
https://github.com/vadz/libtiff/commit/c7153361a4041260719b340f73f2f76b0969235c
https://github.com/asarubbo/poc/blob/master/00112-libtiff-heapoverflow-_TIFFmemcpy