mirror of
https://github.com/neovim/neovim.git
synced 2024-12-29 14:41:06 -07:00
Fix out of bounds read in sign_group_ref
This commit is contained in:
parent
237cecd81b
commit
897431c486
@ -91,7 +91,7 @@ static signgroup_T * sign_group_ref(const char_u *groupname)
|
||||
signgroup_T *group;
|
||||
|
||||
hash = hash_hash(groupname);
|
||||
hi = hash_lookup(&sg_table, (char*)S_LEN(groupname), hash);
|
||||
hi = hash_lookup(&sg_table, (char*)groupname, STRLEN(groupname), hash);
|
||||
if (HASHITEM_EMPTY(hi))
|
||||
{
|
||||
// new group
|
||||
|
Loading…
Reference in New Issue
Block a user