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)
191f18bad0
This commit is contained in:
Jan Edmund Lazo
2018-08-24 22:29:59 -04:00
parent bdffa01b52
commit 16b55d2e9d
3 changed files with 14 additions and 6 deletions

View File

@@ -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