diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-07-07 19:59:49 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-07-07 19:59:49 +0100 |
commit | baefde14550231f6468ac2ed2ed495bc381c0c92 (patch) | |
tree | 01fd492bca105a1b2a77366bacecfb83320641a9 /src/testdir/test_ins_complete.vim | |
parent | caea66442d86e7bbba3bf3dc202c3c0d549b9853 (diff) |
patch 9.0.0046: reading past end of completion with duplicate matchv9.0.0046
Problem: Reading past end of completion with duplicate match.
Solution: Check string length
Diffstat (limited to 'src/testdir/test_ins_complete.vim')
-rw-r--r-- | src/testdir/test_ins_complete.vim | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/testdir/test_ins_complete.vim b/src/testdir/test_ins_complete.vim index 5e5b1bbece..2be6d06020 100644 --- a/src/testdir/test_ins_complete.vim +++ b/src/testdir/test_ins_complete.vim @@ -2112,5 +2112,15 @@ func Test_infercase_very_long_line() set noic noinfercase endfunc +func Test_ins_complete_add() + " this was reading past the end of allocated memory + new + norm o + norm 7o + sil! norm o + + bwipe! +endfunc + " vim: shiftwidth=2 sts=2 expandtab |