In LibTIFF 4.0.9, a heap-based buffer overflow occurs in the function LZWDecodeCompat in tif_lzw.c via a crafted TIFF file, as demonstrated by tiff2ps.
https://www.debian.org/security/2018/dsa-4349
https://usn.ubuntu.com/3864-1/
https://lists.debian.org/debian-lts-announce/2018/07/msg00002.html
https://lists.debian.org/debian-lts-announce/2018/05/msg00009.html
https://lists.debian.org/debian-lts-announce/2018/05/msg00008.html
https://gitlab.com/libtiff/libtiff/commit/58a898cb4459055bb488ca815c23b880c242a27d
https://github.com/halfbitteam/POCs/tree/master/libtiff-4.08_tiff2ps_heap_overflow