diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2026-07-03 15:19:24 +0800 |
|---|---|---|
| committer | zeertzjq <zeertzjq@outlook.com> | 2026-07-03 15:19:55 +0800 |
| commit | b856d5080d80d8bcfcb1cd459bac9f41484a63ea (patch) | |
| tree | 1df510a0ab47f00155d72be73a3ae582b169a0f2 /test/functional/vimscript | |
| parent | 6f98352163057a0bea06d3859747a01558af3772 (diff) | |
| download | rneovim-b856d5080d80d8bcfcb1cd459bac9f41484a63ea.tar.gz rneovim-b856d5080d80d8bcfcb1cd459bac9f41484a63ea.tar.bz2 rneovim-b856d5080d80d8bcfcb1cd459bac9f41484a63ea.zip | |
vim-patch:9.2.0771: dict_add_list() has inconsistent ownership on failure
Problem: dict_add_list() frees the passed list on failure path
(when dict_add() fails) but not on the other (when
dictitem_alloc() fails), so a caller cannot tell whether it
still owns the list after a failure.
Solution: On failure leave the passed list untouched and owned by the
caller; only take a reference on success.
related: vim/vim#20668
Supported by AI.
https://github.com/vim/vim/commit/3ae1443d10da03019d4b37c090daee38926da215
Co-authored-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'test/functional/vimscript')
0 files changed, 0 insertions, 0 deletions