mirror of
https://github.com/neovim/neovim.git
synced 2025-09-30 06:58:35 +00:00
Fix out of bounds read in sign_group_ref
This commit is contained in:
@@ -91,7 +91,7 @@ static signgroup_T * sign_group_ref(const char_u *groupname)
|
|||||||
signgroup_T *group;
|
signgroup_T *group;
|
||||||
|
|
||||||
hash = hash_hash(groupname);
|
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))
|
if (HASHITEM_EMPTY(hi))
|
||||||
{
|
{
|
||||||
// new group
|
// new group
|
||||||
|
Reference in New Issue
Block a user