An integer overflow at a u_read_undo memory allocation site would occur for vim, as it does not properly validate values for tree length when reading a corrupted undo file, which may lead to resultant buffer overflows. Upstream bug: https://groups.google.com/forum/#!topic/vim_dev/QPZc0CY9j3Y Upstream patch: https://github.com/vim/vim/commit/3eb1637b1bba19519885dd6d377bd5596e91d22c