From: Bram Moolenaar Date: Tue, 26 May 2020 09:37:26 +0000 (+0200) Subject: patch 8.2.0827: Vim9: crash in :defcompile X-Git-Tag: v8.2.0827 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=285b189260e2d753454449e429f2caa17e1c39a5;p=thirdparty%2Fvim.git patch 8.2.0827: Vim9: crash in :defcompile Problem: Vim9: crash in :defcompile. Solution: Fix off-by-one error. --- diff --git a/src/userfunc.c b/src/userfunc.c index 4a12c1984c..469dcc1a53 100644 --- a/src/userfunc.c +++ b/src/userfunc.c @@ -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; } } } diff --git a/src/version.c b/src/version.c index 1730875514..8a94dde4c1 100644 --- a/src/version.c +++ b/src/version.c @@ -746,6 +746,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 827, /**/ 826, /**/