1
0
forked from aniani/vim

patch 8.0.0078

Problem:    Accessing freed memory in quickfix.
Solution:   Reset pointer when freeing 'errorformat'. (Domenique Pelle)
This commit is contained in:
Bram Moolenaar
2016-11-12 15:36:54 +01:00
parent e3505dfc85
commit 63bed3d319
3 changed files with 15 additions and 1 deletions

View File

@@ -1648,3 +1648,13 @@ function! Test_Autocmd_Exception()
set efm&vim
endfunction
function Test_caddbuffer()
" This used to cause a memory access in freed memory
let save_efm = &efm
set efm=%EEEE%m,%WWWW,%+CCCC%>%#,%GGGG%.#
cgetexpr ['WWWW', 'EEEE', 'CCCC']
let &efm = save_efm
cad
bwipe!
endfunc