]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.1415: potential use-after free when there is an error in 'tabpanel' v9.1.1415
authorChristian Brabandt <cb@256bit.org>
Tue, 27 May 2025 18:49:34 +0000 (20:49 +0200)
committerChristian Brabandt <cb@256bit.org>
Tue, 27 May 2025 18:49:34 +0000 (20:49 +0200)
commitac83b3c373985080eda3a07a76a556b168da4abe
tree7132367315926bee4d907274a7850f75d6984bb1
parentf0c7090a3833f1c85b242a858e7d95a34456674c
patch 9.1.1415: potential use-after free when there is an error in 'tabpanel'

Problem:  potential use-after free when there is an error in 'tabpanel'
          option (@char101, after v9.1.1391)
Solution: check if p_tpl has been set to null before accessing it again.

While at it slightly change starts_with_percent_and_bang() and use the
existing opt_name and opt_scope variables.

fixes: #17364
closes: #17388

Signed-off-by: Christian Brabandt <cb@256bit.org>
src/tabpanel.c
src/testdir/test_tabpanel.vim
src/version.c