An issue was discovered in GNU patch before 2.7.6. Out-of-bounds access within pch_write_line() in pch.c can possibly lead to DoS via a crafted input file.
https://usn.ubuntu.com/3624-2/
https://usn.ubuntu.com/3624-1/
https://euvd.enisa.europa.eu/vulnerability/EUVD-2016-1712