0
0
mirror of https://github.com/vim/vim.git synced 2025-09-27 04:14:06 -04:00

patch 8.0.0879: crash when shifting with huge number

Problem:    Crash when shifting with huge number.
Solution:   Check for overflow. (Dominique Pelle, closes #1945)
This commit is contained in:
Bram Moolenaar
2017-08-06 15:42:06 +02:00
parent cae92dc3d5
commit bae5a17a73
3 changed files with 14 additions and 1 deletions

View File

@@ -18,6 +18,14 @@ func Test_block_shift_multibyte()
q!
endfunc
func Test_block_shift_overflow()
" This used to cause a multiplication overflow followed by a crash.
new
normal ii
exe "normal \<C-V>876543210>"
q!
endfunc
func Test_dotregister_paste()
new
exe "norm! ihello world\<esc>"