aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/handlers.lua
diff options
context:
space:
mode:
authorSean Dewar <seandewar@users.noreply.github.com>2021-10-08 20:44:58 +0100
committerzeertzjq <zeertzjq@outlook.com>2022-04-13 21:31:24 +0800
commit76e6b81b23c59ee119d6cc34eed0ef580f15db07 (patch)
treed36809d3a5c8386ae4003d83eac48a16b9591e3b /runtime/lua/vim/lsp/handlers.lua
parentfc954d0a61ca8952bdcd05f66fe07ae2a4ccb712 (diff)
downloadrneovim-76e6b81b23c59ee119d6cc34eed0ef580f15db07.tar.gz
rneovim-76e6b81b23c59ee119d6cc34eed0ef580f15db07.tar.bz2
rneovim-76e6b81b23c59ee119d6cc34eed0ef580f15db07.zip
vim-patch:8.2.3487: illegal memory access if buffer name is very long
Problem: Illegal memory access if buffer name is very long. Solution: Make sure not to go over the end of the buffer. https://github.com/vim/vim/commit/826bfe4bbd7594188e3d74d2539d9707b1c6a14b Adjust the test to use :noswapfile, as Nvim fails to create the swap file on Windows due to the file name's length (E303). We don't have this behaviour on Linux as we get "[Permission denied]" from readfile(), so there is no attempt to create the swap file. However, Vim doesn't try to create the swap file on Windows either for a different reason: MAXPATHL in Vim for Windows is only 1024 (compared to Nvim's 4096 on the Windows CI), so readfile() gives "Illegal file name" instead, thus not needing :noswapfile for both cases.
Diffstat (limited to 'runtime/lua/vim/lsp/handlers.lua')
0 files changed, 0 insertions, 0 deletions