aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/msgpack_rpc/channel.c
diff options
context:
space:
mode:
authornwounkn <nwounkn@gmail.com>2023-09-27 20:43:39 +0500
committerGitHub <noreply@github.com>2023-09-27 08:43:39 -0700
commitbfdec5b0e71991ebc0a8ad7c12d39f7a9cc56f07 (patch)
tree4d2e57fde8e066de0e2701f3367078e3e3cc6ffe /src/nvim/msgpack_rpc/channel.c
parent26d6f030231831ad9804f195155111aaf375340a (diff)
downloadrneovim-bfdec5b0e71991ebc0a8ad7c12d39f7a9cc56f07.tar.gz
rneovim-bfdec5b0e71991ebc0a8ad7c12d39f7a9cc56f07.tar.bz2
rneovim-bfdec5b0e71991ebc0a8ad7c12d39f7a9cc56f07.zip
fix(clang): null pointer dereference in parse_msgpack #25389
Diffstat (limited to 'src/nvim/msgpack_rpc/channel.c')
-rw-r--r--src/nvim/msgpack_rpc/channel.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/msgpack_rpc/channel.c b/src/nvim/msgpack_rpc/channel.c
index b753d46d64..fb24100f3a 100644
--- a/src/nvim/msgpack_rpc/channel.c
+++ b/src/nvim/msgpack_rpc/channel.c
@@ -348,6 +348,7 @@ static void parse_msgpack(Channel *channel)
"id %" PRIu32 ". Ensure the client is properly synchronized",
channel->id, (unsigned)channel->rpc.client_type, p->request_id);
chan_close_with_error(channel, buf, LOGLVL_ERR);
+ return;
}
frame->returned = true;
frame->errored = (p->error.type != kObjectTypeNil);