aboutsummaryrefslogtreecommitdiff
path: root/test/functional/vimscript/executable_spec.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2026-02-06 20:25:14 +0800
committerGitHub <noreply@github.com>2026-02-06 20:25:14 +0800
commit6dd0a7d60a28274399928e960a0a520ab2b86bcd (patch)
tree76ffd347041e7db653b7825aefc7f0bba0e160c1 /test/functional/vimscript/executable_spec.lua
parentd3bfde60ad5b8a8129ac5fa8c694e30538973e15 (diff)
downloadrneovim-6dd0a7d60a28274399928e960a0a520ab2b86bcd.tar.gz
rneovim-6dd0a7d60a28274399928e960a0a520ab2b86bcd.tar.bz2
rneovim-6dd0a7d60a28274399928e960a0a520ab2b86bcd.zip
vim-patch:9.1.2135: tests: tar plugin does not consider 'nowrapscan' (#37752)
Problem: search() is used to check for the message from tar that indicates leading slashes found in the tar archive, or to check for the leading slashes themselves. However, if 'nowrapscan' is in effect these searches are limited to the last line and don't find any results. This causes the warning message from tar to be seen in the buffer, the "Path Traversal Attack Detected" message to be omitted, and editing actions can fail. This can be seen, for example, when editing src/testdir/samples/evil.tar. Solution: Use the 'w' flag for search() (Kevin Goodsell) closes: vim/vim#19333 https://github.com/vim/vim/commit/18d844e365c21043d187f142bc88e75e9966822f Co-authored-by: Kevin Goodsell <kevin-opensource@omegacrash.net>
Diffstat (limited to 'test/functional/vimscript/executable_spec.lua')
0 files changed, 0 insertions, 0 deletions