diff options
author | oni-link <knil.ino@gmail.com> | 2016-09-01 23:52:58 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2016-09-01 23:52:58 +0200 |
commit | f175b281cf3e6d5287663b79c4a7f705eb83301a (patch) | |
tree | 18ae2447ac7cdf697bfc543aaff1be7c24937218 /src/nvim/api/vim.c | |
parent | c6ac4f84b16324b56c38bd2003f037d995262fa1 (diff) | |
download | rneovim-f175b281cf3e6d5287663b79c4a7f705eb83301a.tar.gz rneovim-f175b281cf3e6d5287663b79c4a7f705eb83301a.tar.bz2 rneovim-f175b281cf3e6d5287663b79c4a7f705eb83301a.zip |
helpers.c: Fix invalid state of failed conversion result for object_to_vim() (#5282)
If a conversion for a container fails in object_to_vim(), the memory for
the container in the returned/converted value is freed, but the returned
value keeps a pointer to the freed memory. Calling later clear_tv() on
this value leads to an invalid memory access.
Set v_type to VAR_UNKNOWN in the converted value on failure, so that
clear_tv() has no effect.
Diffstat (limited to 'src/nvim/api/vim.c')
0 files changed, 0 insertions, 0 deletions