]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.0.1444: crash when passing NULL to setcmdline() v9.0.1444
authorzeertzjq <zeertzjq@outlook.com>
Wed, 12 Apr 2023 15:21:14 +0000 (16:21 +0100)
committerBram Moolenaar <Bram@vim.org>
Wed, 12 Apr 2023 15:21:14 +0000 (16:21 +0100)
commitac6cd31afcbdd08bfa92ca33f7d4ce5773ba4353
tree3f9358e8fd2a2cf3450a79b7aa184d9224d6845d
parent05a627c3d4e42a18f76c14828d68ee4747118211
patch 9.0.1444: crash when passing NULL to setcmdline()

Problem:    Crash when passing NULL to setcmdline(). (Andreas Louv)
Solution:   Use tv_get_string() instead of using v_string directly.
            (closes #12231, closes #12227)
src/ex_getln.c
src/testdir/test_cmdline.vim
src/version.c