neovim/test/functional
Alexandre Teoi 1e905c52ca fix(inccommand): restrict cmdpreview undo calls
Problem:
The cmdpreview saved undo nodes on cmdpreview_prepare() from ex_getln.c may
become invalid (free) if the preview function makes undo operations, causing
heap-use-after-free errors.

Solution:
Save the buffer undo list on cmdpreview_prepare)_ and start a new empty one. On
cmdpreview_restore_state(), undo all the entries in the new undo list and
restore the original one. With this approach, the preview function will be
allowed to undo only its own changes.

Fix #20036
Fix #20248
2023-07-28 15:20:58 +08:00
..
api test: fix VimResume test flakiness 2023-07-23 02:03:28 +00:00
autocmd test: scheduled callback shouldn't trigger ModeChanged repeatedly 2023-04-26 16:24:00 +00:00
core fix(startup): don't truncate when printing with -l 2023-07-25 22:56:02 +08:00
editor fix(folds): update folds in Insert mode with fdm=indent 2023-07-25 22:56:02 +08:00
ex_cmds fix(remote): make --remote-expr print to stdout 2023-06-11 07:30:08 +00:00
fixtures NVIM v0.9.0 2023-04-07 13:26:29 +02:00
legacy vim-patch:9.0.1597: cursor ends up below the window after a put 2023-06-02 00:49:10 +00:00
lua fix(fs.lua): normalize slash truncation 2023-07-18 06:36:24 +00:00
options test: replace lfs with luv and vim.fs 2023-04-04 21:59:06 +02:00
plugin fix(editorconfig): check that buffer is valid 2023-06-05 16:53:33 +00:00
provider test: re-bundle cat on windows (#21255) 2023-03-14 09:12:26 +08:00
shada test: replace lfs with luv and vim.fs 2023-04-04 21:59:06 +02:00
terminal fix(terminal): send Shift-Home Shift-End Ctrl-Home Ctrl-End 2023-07-22 00:01:01 +00:00
treesitter [Backport release-0.9] fix(treesitter): redraw added/removed injections properly (#23408) 2023-05-06 11:55:51 +02:00
ui fix(inccommand): restrict cmdpreview undo calls 2023-07-28 15:20:58 +08:00
vimscript fix(plines): folded lines with virt_lines attached to line above 2023-07-25 22:56:02 +08:00
example_spec.lua
helpers.lua test: replace lfs with luv and vim.fs 2023-04-04 21:59:06 +02:00
preload.lua test: remove unused variable (#21552) 2022-12-29 07:20:42 +08:00