aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-01-13 19:26:30 +0100
committerJustin M. Keyes <justinkz@gmail.com>2018-01-13 19:42:07 +0100
commit8eb0888a5de2481e15fcae63fa477f0ac634c9f2 (patch)
tree16d8bef83fdcd401e01c9c5a6813ec1d0f34ce1f /src/nvim/testdir
parent9ddeb6e187e6ef6045bf037e4225dc46c8efb693 (diff)
downloadrneovim-8eb0888a5de2481e15fcae63fa477f0ac634c9f2.tar.gz
rneovim-8eb0888a5de2481e15fcae63fa477f0ac634c9f2.tar.bz2
rneovim-8eb0888a5de2481e15fcae63fa477f0ac634c9f2.zip
vim-patch:8.0.0582: illegal memory access with z= command
Problem: Illegal memory access with z= command. (Dominique Pelle) Solution: Avoid case folded text to be longer than the original text. Use MB_PTR2LEN() instead of MB_BYTE2LEN(). https://github.com/vim/vim/commit/5b276aa80e112ae1993bd43e28f599f257827c54
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_spell.vim9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_spell.vim b/src/nvim/testdir/test_spell.vim
index 334568aadb..66be5c2441 100644
--- a/src/nvim/testdir/test_spell.vim
+++ b/src/nvim/testdir/test_spell.vim
@@ -18,3 +18,12 @@ func Test_wrap_search()
bwipe!
set nospell
endfunc
+
+func Test_z_equal_on_invalid_utf8_word()
+ split
+ set spell
+ call setline(1, "\xff")
+ norm z=
+ set nospell
+ bwipe!
+endfunc