comparison src/testdir/test_search.vim @ 15924:98d315176d48 v8.1.0968

patch 8.1.0968: crash when using search pattern %Ufffffc23 commit https://github.com/vim/vim/commit/527a2d86fb375fcc7b34e80fc47f4c7126fc12ba Author: Bram Moolenaar <Bram@vim.org> Date: Thu Feb 21 22:28:51 2019 +0100 patch 8.1.0968: crash when using search pattern \%Ufffffc23 Problem: Crash when using search pattern \%Ufffffc23. Solution: Limit character to INT_MAX. (closes https://github.com/vim/vim/issues/4009)
author Bram Moolenaar <Bram@vim.org>
date Thu, 21 Feb 2019 22:30:06 +0100
parents 22b51b13634d
children ff00d207cc5e
comparison
equal deleted inserted replaced
15923:5818bd3610d1 15924:98d315176d48
1209 call feedkeys("/Mi\<c-l>\<c-l>\<cr>", 'tx') 1209 call feedkeys("/Mi\<c-l>\<c-l>\<cr>", 'tx')
1210 call assert_equal(5, line('.')) 1210 call assert_equal(5, line('.'))
1211 call assert_equal(bufcontent[1], @/) 1211 call assert_equal(bufcontent[1], @/)
1212 call Incsearch_cleanup() 1212 call Incsearch_cleanup()
1213 endfunc 1213 endfunc
1214
1215 func Test_large_hex_chars()
1216 " This used to cause a crash, the character becomes an NFA state.
1217 try
1218 /\%Ufffffc23
1219 catch
1220 call assert_match('E678:', v:exception)
1221 endtry
1222 endfunc