-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
heap-use-after-free if callback deletes a variable while listing variables #20792
Labels
bug-crash
issue reporting a crash or segfault
bug-vim
wrong behavior inherited from vim
has:backtrace
issue contains a stacktrace/ASAN log
has:vim-patch
issue is fixed in vim and patch needs to be ported
Comments
zeertzjq
added
has:backtrace
issue contains a stacktrace/ASAN log
bug-crash
issue reporting a crash or segfault
lua
stdlib
ui-extensibility
UI extensibility, events, protocol
labels
Oct 24, 2022
Related: #20790 |
When the deleted variable is not the current variable the stacktrace is a bit different. vim.cmd([[
let g:var1 = 1
let g:var2 = 2
let g:var3 = 3
]])
local ns = vim.api.nvim_create_namespace('test')
vim.ui_attach(ns, { ext_messages = true }, function(event, _, content)
if event == 'msg_show' and content[1][2] == 'var1 #1' then
vim.cmd('unlet var3')
end
end)
vim.cmd('let g:')
vim.ui_detach(ns) With
With
|
justinmk
changed the title
heap-use-after-free when vim.ui_attach() callback deletes a variable while listing variables
vim.ui_attach: heap-use-after-free if callback deletes a variable while listing variables
Oct 24, 2022
zeertzjq
added
vimscript
and removed
lua
stdlib
ui-extensibility
UI extensibility, events, protocol
labels
Oct 24, 2022
zeertzjq
changed the title
vim.ui_attach: heap-use-after-free if callback deletes a variable while listing variables
heap-use-after-free if callback deletes a variable while listing variables
Oct 24, 2022
Similar crash in Vim: vim/vim#11435 |
zeertzjq
added
bug-vim
wrong behavior inherited from vim
vimscript
and removed
vimscript
labels
Oct 24, 2022
zeertzjq
added
the
has:vim-patch
issue is fixed in vim and patch needs to be ported
label
Nov 25, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug-crash
issue reporting a crash or segfault
bug-vim
wrong behavior inherited from vim
has:backtrace
issue contains a stacktrace/ASAN log
has:vim-patch
issue is fixed in vim and patch needs to be ported
Neovim version (nvim -v)
v0.9.0-dev-156+g29fe3348b
Vim (not Nvim) behaves the same?
N/A
Operating system/version
Arch Linux
Terminal name/version
kitty 0.26.4
$TERM environment variable
xterm-kitty
Installation
build from repo
How to reproduce the issue
nvim -u NONE
(nvim --clean
also reproduces the issue but I thinknvim -u NONE
is cleaner here)Expected behavior
No crash
Actual behavior
heap-use-after-free:
The text was updated successfully, but these errors were encountered: