1
0
forked from aniani/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().
This commit is contained in:
Bram Moolenaar
2017-04-22 23:49:52 +02:00
parent 94be619e30
commit 5b276aa80e
3 changed files with 31 additions and 22 deletions

View File

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