diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-08-02 05:56:27 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2024-08-02 06:11:58 +0800 |
commit | 9f2d793068144ef92765fefd729b0eeffde11b7a (patch) | |
tree | 2c1f9453a41a080e6194058cc428a5abe1b16588 /test/functional/lua/api_spec.lua | |
parent | d65788052fa0e634e521e67b44f67bf09b417319 (diff) | |
download | rneovim-9f2d793068144ef92765fefd729b0eeffde11b7a.tar.gz rneovim-9f2d793068144ef92765fefd729b0eeffde11b7a.tar.bz2 rneovim-9f2d793068144ef92765fefd729b0eeffde11b7a.zip |
vim-patch:9.0.2149: [security]: use-after-free in exec_instructions()
Problem: [security]: use-after-free in exec_instructions()
Solution: get tv pointer again
[security]: use-after-free in exec_instructions()
exec_instructions may access freed memory, if the GA_GROWS_FAILS()
re-allocates memory. When this happens, the typval tv may still point to
now already freed memory. So let's get that pointer again and compare it
with tv. If those two pointers differ, tv is now invalid and we have to
refresh the tv pointer.
closes: vim/vim#13621
https://github.com/vim/vim/commit/5dd41d4b6370b7b7d09d691f9252b3899c66102a
Co-authored-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'test/functional/lua/api_spec.lua')
0 files changed, 0 insertions, 0 deletions