aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api/vim.c
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2021-04-04 22:41:01 +0200
committerGitHub <noreply@github.com>2021-04-04 22:41:01 +0200
commit160c9fd126220d6e79204f637ac4bcd999527d4b (patch)
tree1039964b70d2b87f7512b95c5c755aab1d7994b8 /src/nvim/api/vim.c
parent0f187700ab1437e949f03d6915df7c76f8287304 (diff)
parent3d6831a30a6248b44be86e3b149eaaf4bb05c0a4 (diff)
downloadrneovim-160c9fd126220d6e79204f637ac4bcd999527d4b.tar.gz
rneovim-160c9fd126220d6e79204f637ac4bcd999527d4b.tar.bz2
rneovim-160c9fd126220d6e79204f637ac4bcd999527d4b.zip
Merge pull request #14199 from bfredl/chansend2
api: fix use-after-free in nvim_chan_send
Diffstat (limited to 'src/nvim/api/vim.c')
-rw-r--r--src/nvim/api/vim.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/api/vim.c b/src/nvim/api/vim.c
index 3ae944de4d..09496f5d0a 100644
--- a/src/nvim/api/vim.c
+++ b/src/nvim/api/vim.c
@@ -1333,7 +1333,8 @@ void nvim_chan_send(Integer chan, String data, Error *err)
return;
}
- channel_send((uint64_t)chan, data.data, data.size, &error);
+ channel_send((uint64_t)chan, data.data, data.size,
+ false, &error);
if (error) {
api_set_error(err, kErrorTypeValidation, "%s", error);
}