diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-08-24 20:07:22 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-08-24 20:07:22 +0100 |
commit | d6c67629ed05aae436164eec474832daf8ba7420 (patch) | |
tree | 7a2edf894153bc5e71d0213a7501ff858941b467 /src/testdir/test_quickfix.vim | |
parent | 80525751c5ce9ed82c41d83faf9ef38667bf61b1 (diff) |
patch 9.0.0260: using freed memory when using 'quickfixtextfunc' recursivelyv9.0.0260
Problem: Using freed memory when using 'quickfixtextfunc' recursively.
Solution: Do not allow for recursion.
Diffstat (limited to 'src/testdir/test_quickfix.vim')
-rw-r--r-- | src/testdir/test_quickfix.vim | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/testdir/test_quickfix.vim b/src/testdir/test_quickfix.vim index 94651af819..762fa8d8d0 100644 --- a/src/testdir/test_quickfix.vim +++ b/src/testdir/test_quickfix.vim @@ -6351,4 +6351,17 @@ func Test_qflist_statusmsg() %bw! endfunc +func Test_quickfixtextfunc_recursive() + func s:QFTfunc(o) + cgete '0' + endfunc + copen + let &quickfixtextfunc = 's:QFTfunc' + cex "" + + let &quickfixtextfunc = '' + cclose +endfunc + + " vim: shiftwidth=2 sts=2 expandtab |