mirror of
https://github.com/neovim/neovim.git
synced 2025-09-14 15:28:17 +00:00
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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user