commit bfdec5b0e71991ebc0a8ad7c12d39f7a9cc56f07
parent 26d6f030231831ad9804f195155111aaf375340a
Author: nwounkn <nwounkn@gmail.com>
Date: Wed, 27 Sep 2023 20:43:39 +0500
fix(clang): null pointer dereference in parse_msgpack #25389
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git 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);