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:
@@ -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>"
|
||||
|
Reference in New Issue
Block a user