mirror of
https://github.com/neovim/neovim.git
synced 2026-08-29 10:31:48 +00:00
vim-patch:8.0.0078
Problem: Accessing freed memory in quickfix.
Solution: Reset pointer when freeing 'errorformat'. (Domenique Pelle)
63bed3d319
This commit is contained in:
@@ -1630,3 +1630,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
|
||||
|
||||
Reference in New Issue
Block a user