annotate src/testdir/test_modeline.vim @ 14954:69d2749a6a2f v8.1.0488

patch 8.1.0488: using freed memory in quickfix code commit https://github.com/vim/vim/commit/9f84ded38b62c82a4ee57b54f403b1b185ed8170 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Oct 20 20:54:02 2018 +0200 patch 8.1.0488: using freed memory in quickfix code Problem: Using freed memory in quickfix code. (Dominique Pelle) Solution: Add the quickfix_busy() flag to postpone deleting quickfix lists until it is safe. (Yegappan Lakshmanan, closes #3538)
author Bram Moolenaar <Bram@vim.org>
date Sat, 20 Oct 2018 21:00:06 +0200
parents 68722ba52971
children 85467d180844
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
14381
d9e6eec551e1 patch 8.1.0205: invalid memory access with invalid modeline
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
1 " Tests for parsing the modeline.
d9e6eec551e1 patch 8.1.0205: invalid memory access with invalid modeline
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
2
14383
8846b8344430 patch 8.1.0206: duplicate test function name
Christian Brabandt <cb@256bit.org>
parents: 14381
diff changeset
3 func Test_modeline_invalid()
14381
d9e6eec551e1 patch 8.1.0205: invalid memory access with invalid modeline
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
4 " This was reading before allocated memory.
d9e6eec551e1 patch 8.1.0205: invalid memory access with invalid modeline
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
5 call writefile(['vi:0', 'nothing'], 'Xmodeline')
d9e6eec551e1 patch 8.1.0205: invalid memory access with invalid modeline
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
6 call assert_fails('split Xmodeline', 'E518:')
d9e6eec551e1 patch 8.1.0205: invalid memory access with invalid modeline
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
7 bwipe!
14387
68722ba52971 patch 8.1.0208: file left behind after running individual test
Christian Brabandt <cb@256bit.org>
parents: 14383
diff changeset
8 call delete('Xmodeline')
14381
d9e6eec551e1 patch 8.1.0205: invalid memory access with invalid modeline
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
9 endfunc