diff options
author | Florian Larysch <fl@n621.de> | 2016-10-08 17:55:55 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2016-10-26 13:05:25 +0200 |
commit | 2a6c5bb0c4b03a9da81dae64d37c9912e448eaf0 (patch) | |
tree | 0fd9119bf18da9f765ae85b01747a853f2f8906b /test/functional/api/version_spec.lua | |
parent | 0f32088ea23fbbe9557c89a9e075f2e9b9e158a4 (diff) | |
download | rneovim-2a6c5bb0c4b03a9da81dae64d37c9912e448eaf0.tar.gz rneovim-2a6c5bb0c4b03a9da81dae64d37c9912e448eaf0.tar.bz2 rneovim-2a6c5bb0c4b03a9da81dae64d37c9912e448eaf0.zip |
modeline: Handle version number overflow. #5450
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.
Diffstat (limited to 'test/functional/api/version_spec.lua')
0 files changed, 0 insertions, 0 deletions