diff options
author | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-08-24 22:29:59 -0400 |
---|---|---|
committer | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-08-24 23:02:51 -0400 |
commit | 16b55d2e9d074bb3de7505708c30c05fe02d8f12 (patch) | |
tree | b98175f6003ceaa959be763dcd80c0488cb339be /src/nvim/message.c | |
parent | bdffa01b528ca6093fc8e0e4f54f810f9bb6d3b7 (diff) | |
download | rneovim-16b55d2e9d074bb3de7505708c30c05fe02d8f12.tar.gz rneovim-16b55d2e9d074bb3de7505708c30c05fe02d8f12.tar.bz2 rneovim-16b55d2e9d074bb3de7505708c30c05fe02d8f12.zip |
vim-patch:8.0.1468: illegal memory access in del_bytes()
Problem: Illegal memory access in del_bytes().
Solution: Check for negative byte count. (Christian Brabandt, closes vim/vim#2466)
https://github.com/vim/vim/commit/191f18bad0b5c48afa05c3e8a00f3ced993f6a38
Diffstat (limited to 'src/nvim/message.c')
-rw-r--r-- | src/nvim/message.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/message.c b/src/nvim/message.c index 947cd0735e..4b0824c90f 100644 --- a/src/nvim/message.c +++ b/src/nvim/message.c @@ -610,7 +610,7 @@ static bool emsgfv(const char *fmt, va_list ap) /// detected when fuzzing vim. void iemsg(const char *s) { - msg((char_u *)s); + emsg((char_u *)s); #ifdef ABORT_ON_INTERNAL_ERROR abort(); #endif |