# HG changeset patch # User Christian Brabandt # Date 1459197908 -7200 # Node ID 1cb59cd2d3824dc6077f08eefa33e06b89699653 # Parent 26512223f779bb5df62a63123357160a76285a08 commit https://github.com/vim/vim/commit/ef9d9b94a8803c405884bb6914ed745ede57c596 Author: Bram Moolenaar Date: Mon Mar 28 22:44:50 2016 +0200 patch 7.4.1681 Problem: Coverity warns for fixed size buffer length (false positive). Solution: Add a check for the name length. diff --git a/src/eval.c b/src/eval.c --- a/src/eval.c +++ b/src/eval.c @@ -933,6 +933,11 @@ eval_init(void) for (i = 0; i < VV_LEN; ++i) { p = &vimvars[i]; + if (STRLEN(p->vv_name) > 16) + { + EMSG("INTERNAL: name too long, increase size of dictitem16_T"); + getout(1); + } STRCPY(p->vv_di.di_key, p->vv_name); if (p->vv_flags & VV_RO) p->vv_di.di_flags = DI_FLAGS_RO | DI_FLAGS_FIX; diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -749,6 +749,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1681, +/**/ 1680, /**/ 1679,