vim before patch 8.0.0322 does not properly validate values for tree length when handling a spell file, which may result in an integer overflow at a memory allocation site and a resultant buffer overflow. http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2017-5953