]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.1071: args missing after failing to redefine a function v9.1.1071
authorzeertzjq <zeertzjq@outlook.com>
Sun, 2 Feb 2025 18:03:17 +0000 (19:03 +0100)
committerChristian Brabandt <cb@256bit.org>
Sun, 2 Feb 2025 18:04:22 +0000 (19:04 +0100)
commit04d2a3fdc051d6a419dc0ea4de7a9640cefccd31
treed78203bf5fb256bb4cd8d00051d701b0cb77a421
parentedf0f7db28f87611368e158210e58ed30f673098
patch 9.1.1071: args missing after failing to redefine a function

Problem:  Arguments of a function are missing after failing to redefine
          it (after 8.2.2505), and heap-use-after-free with script-local
          function (after 9.1.1063).
Solution: Don't clear arguments or free uf_name_exp when failing to
          redefine an existing function (zeertzjq)

closes: #16567

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/testdir/test_user_func.vim
src/userfunc.c
src/version.c