]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.2.0827: Vim9: crash in :defcompile v8.2.0827
authorBram Moolenaar <Bram@vim.org>
Tue, 26 May 2020 09:37:26 +0000 (11:37 +0200)
committerBram Moolenaar <Bram@vim.org>
Tue, 26 May 2020 09:37:26 +0000 (11:37 +0200)
Problem:    Vim9: crash in :defcompile.
Solution:   Fix off-by-one error.

src/userfunc.c
src/version.c

index 4a12c1984cecc63e196289b7ee6ad3f9e41385d5..469dcc1a532ad730758c46d1d844e38cfa9701a0 100644 (file)
@@ -3348,6 +3348,7 @@ ex_defcompile(exarg_T *eap UNUSED)
                    hi = func_hashtab.ht_array;
                    ht_used = func_hashtab.ht_used;
                    todo = (int)ht_used;
+                   --hi;
                }
            }
        }
index 173087551427b8175a9bba55abf14b2ffdaaf119..8a94dde4c1341728e6467480a5af4bb80d439ab8 100644 (file)
@@ -746,6 +746,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    827,
 /**/
     826,
 /**/