]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 8.2.0120: virtcol() does not check arguments to be valid v8.2.0120
authorBram Moolenaar <Bram@vim.org>
Wed, 15 Jan 2020 19:36:55 +0000 (20:36 +0100)
committerBram Moolenaar <Bram@vim.org>
Wed, 15 Jan 2020 19:36:55 +0000 (20:36 +0100)
commitb3d33d8570bc49a7f90990572d7f9630a1bfae02
tree46c3d7dedbb64129504f404d5dfdb2bfb7ec2ecc
parent1470dc35c4b14bda1995b7566c9a41a33eb06517
patch 8.2.0120: virtcol() does not check arguments to be valid

Problem:    virtcol() does not check arguments to be valid, which may lead to
            a crash.
Solution:   Check the column to be valid.  Do not decrement MAXCOL.
            (closes #5480)
src/evalfunc.c
src/testdir/test_marks.vim
src/version.c