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

updated for version 7.3.715

Problem:    Crash when calling setloclist() in BufUnload autocmd. (Marcin
            Szamotulski)
Solution:   Set w_llist to NULL when it was freed.  Also add a test.
            (Christian Brabandt)
This commit is contained in:
Bram Moolenaar
2012-11-14 22:38:08 +01:00
parent b826ddb034
commit 41b884b273
4 changed files with 40 additions and 10 deletions

View File

@@ -85,8 +85,10 @@ Results of test49.vim:
*** Test 83: OK (2835)
*** Test 84: OK (934782101)
*** Test 85: OK (198689)
--- Test 86: All tests were run with throwing exceptions on error.
--- Test 86: No Crash for vimgrep on BufUnload
*** Test 86: OK (0)
--- Test 87: All tests were run with throwing exceptions on error.
The $VIMNOERRTHROW control is not configured.
--- Test 86: All tests were run with throwing exceptions on interrupt.
--- Test 87: All tests were run with throwing exceptions on interrupt.
The $VIMNOINTTHROW control is not configured.
*** Test 86: OK (50443995)
*** Test 87: OK (50443995)

View File

@@ -9603,9 +9603,28 @@ delfunction Delete_autocommands
Xcheck 198689
"-------------------------------------------------------------------------------
" Test 86 setloclist crash {{{1
"
" Executing a setloclist() on BufUnload shouldn't crash Vim
"-------------------------------------------------------------------------------
func F
au BufUnload * :call setloclist(0, [{'bufnr':1, 'lnum':1, 'col':1, 'text': 'tango down'}])
:lvimgrep /.*/ *
endfunc
XpathINIT
ExecAsScript F
delfunction F
Xout "No Crash for vimgrep on BufUnload"
Xcheck 0
"-------------------------------------------------------------------------------
" Test 86: $VIMNOERRTHROW and $VIMNOINTTHROW support {{{1
" Test 87: $VIMNOERRTHROW and $VIMNOINTTHROW support {{{1
"
" It is possible to configure Vim for throwing exceptions on error
" or interrupt, controlled by variables $VIMNOERRTHROW and