vim-patch:7.4.1681

Problem:    Coverity warns for fixed size buffer length (false positive).
Solution:   Add a check for the name length.

ef9d9b94a8
This commit is contained in:
Jurica Bradaric 2016-09-18 17:44:45 +02:00
parent 7531410169
commit b0aa748e14
2 changed files with 2 additions and 1 deletions

View File

@ -513,6 +513,7 @@ void eval_init(void)
for (size_t i = 0; i < ARRAY_SIZE(vimvars); i++) {
p = &vimvars[i];
assert(STRLEN(p->vv_name) <= 16);
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;

View File

@ -762,7 +762,7 @@ static int included_patches[] = {
// 1684 NA
// 1683 NA
1682,
// 1681,
1681,
// 1680 NA
1679,
// 1678 NA