From 897431c486bfe9ba7dbb52c8520df5d82fb63f01 Mon Sep 17 00:00:00 2001 From: Andrej Zieger Date: Sat, 25 May 2019 11:51:13 +0200 Subject: [PATCH] Fix out of bounds read in sign_group_ref --- src/nvim/sign.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nvim/sign.c b/src/nvim/sign.c index 5d482700d0..68d013f298 100644 --- a/src/nvim/sign.c +++ b/src/nvim/sign.c @@ -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