mirror of
https://github.com/neovim/neovim.git
synced 2025-10-01 07:28:34 +00:00
vim-patch:7.4.2223
Problem: Buffer overflow when using latin1 character with feedkeys().
Solution: Check for an illegal character. Add a test.
d3c907b5d2
This commit is contained in:
@@ -138,7 +138,7 @@
|
||||
// Backup multi-byte pointer. Only use with "p" > "s" !
|
||||
# define mb_ptr_back(s, p) (p -= mb_head_off((char_u *)s, (char_u *)p - 1) + 1)
|
||||
// get length of multi-byte char, not including composing chars
|
||||
# define mb_cptr2len(p) utf_ptr2len(p)
|
||||
# define MB_CPTR2LEN(p) utf_ptr2len(p)
|
||||
|
||||
# define MB_COPY_CHAR(f, t) mb_copy_char((const char_u **)(&f), &t);
|
||||
|
||||
|
Reference in New Issue
Block a user