From f5b43bf1f33d7a6bbb4c7130d0e6532dd8156ebd Mon Sep 17 00:00:00 2001 From: nwounkn Date: Wed, 27 Sep 2023 20:43:39 +0500 Subject: [PATCH] fix(clang): null pointer dereference in parse_msgpack --- src/nvim/msgpack_rpc/channel.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/nvim/msgpack_rpc/channel.c b/src/nvim/msgpack_rpc/channel.c index 6f40305caa..d7acf9e28c 100644 --- a/src/nvim/msgpack_rpc/channel.c +++ b/src/nvim/msgpack_rpc/channel.c @@ -337,6 +337,7 @@ static void parse_msgpack(Channel *channel) "id. Ensure the client is properly synchronized", channel->id); chan_close_with_error(channel, buf, LOGLVL_ERR); + return; } frame->returned = true; frame->errored = (p->error.type != kObjectTypeNil);