mirror of
https://github.com/neovim/neovim.git
synced 2026-01-17 18:48:24 +10:00
Closes #5449 A file containing the string "vim" followed by a very large number in a modeline location will trigger an overflow in getdigits() which is called by chk_modeline() when trying to parse the version number. Add getdigits_safe(), which does not assert overflows, but reports them to the caller.