]> granicus.if.org Git - vim/commit
patch 8.2.3779: using freed memory when defining a user command recursively v8.2.3779
authorBram Moolenaar <Bram@vim.org>
Fri, 10 Dec 2021 21:46:09 +0000 (21:46 +0000)
committerBram Moolenaar <Bram@vim.org>
Fri, 10 Dec 2021 21:46:09 +0000 (21:46 +0000)
commit205f29c3e9b895dbaa4f738046da455a93c3812a
tree8c9dd97ca940b88014f7e890f4aabb75cf93fef1
parent9537e37b1124a0584e5f2af10756baca78bc73a1
patch 8.2.3779: using freed memory when defining a user command recursively

Problem:    Using freed memory when defining a user command from a user
            command.
Solution:   Do not use the command pointer after executing the command.
            (closes #9318)
src/testdir/test_usercommands.vim
src/usercmd.c
src/version.c