diff src/gen_opt_test.vim @ 10962:6da4287fd735 v8.0.0370

patch 8.0.0370: invalid memory access when setting wildchar empty commit https://github.com/vim/vim/commit/a12e40351d1357687e8b5dc3122fffef705bdc08 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Feb 25 21:37:57 2017 +0100 patch 8.0.0370: invalid memory access when setting wildchar empty Problem: Invalid memory access when setting wildchar empty. Solution: Avoid going over the end of the option value. (Dominique Pelle, closes #1509) Make option test check all number options with empty value.
author Christian Brabandt <cb@256bit.org>
date Sat, 25 Feb 2017 21:45:04 +0100
parents d7b78cbf85e4
children fdf42c56bb2e
line wrap: on
line diff
--- a/src/gen_opt_test.vim
+++ b/src/gen_opt_test.vim
@@ -46,6 +46,7 @@ let test_values = {
       \ 'updatecount': [[0, 1, 8, 9999], [-1]],
       \ 'updatetime': [[0, 1, 8, 9999], [-1]],
       \ 'verbose': [[-1, 0, 1, 8, 9999], []],
+      \ 'wildcharm': [[-1, 0, 100], []],
       \ 'winheight': [[1, 10, 999], [-1, 0]],
       \ 'winminheight': [[0, 1], [-1]],
       \ 'winminwidth': [[0, 1, 10], [-1]],
@@ -137,7 +138,7 @@ let test_values = {
       \ 'rubydll': [[], []],
       \ 'tcldll': [[], []],
       \
-      \ 'othernum': [[-1, 0, 100], []],
+      \ 'othernum': [[-1, 0, 100], ['']],
       \ 'otherstring': [['', 'xxx'], []],
       \}