1
0
forked from aniani/vim

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)
This commit is contained in:
Bram Moolenaar
2020-01-15 20:36:55 +01:00
parent 1470dc35c4
commit b3d33d8570
3 changed files with 32 additions and 3 deletions

View File

@@ -742,6 +742,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
120,
/**/
119,
/**/