]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.0.1995: Invalid memory access with empty 'foldexpr' v9.0.1995
authorzeertzjq <zeertzjq@outlook.com>
Fri, 6 Oct 2023 17:16:36 +0000 (19:16 +0200)
committerChristian Brabandt <cb@256bit.org>
Fri, 6 Oct 2023 17:18:12 +0000 (19:18 +0200)
commita991ce9c083bb8c02b1b1ec34ed35728197050f3
tree86b81d3c944a52d370959307b44136356cd27976
parentac9c6d5c786a016ca1dce297d167a5a963881f7e
patch 9.0.1995: Invalid memory access with empty 'foldexpr'

Problem:  Invalid memory access when 'foldexpr' returns empty string.
Solution: Check for NUL.

closes: #13293

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