mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 03:05:11 -07: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:
parent
7531410169
commit
b0aa748e14
@ -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;
|
||||
|
@ -762,7 +762,7 @@ static int included_patches[] = {
|
||||
// 1684 NA
|
||||
// 1683 NA
|
||||
1682,
|
||||
// 1681,
|
||||
1681,
|
||||
// 1680 NA
|
||||
1679,
|
||||
// 1678 NA
|
||||
|
Loading…
Reference in New Issue
Block a user