Mercurial > vim
view src/testdir/test_modeline.vim @ 14381:d9e6eec551e1 v8.1.0205
patch 8.1.0205: invalid memory access with invalid modeline
commit https://github.com/vim/vim/commit/9cf4b5005f12ce1d6692266140bdda05d0312d79
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Jul 23 04:12:03 2018 +0200
patch 8.1.0205: invalid memory access with invalid modeline
Problem: Invalid memory access with invalid modeline.
Solution: Pass pointer limit. Add a test. (closes https://github.com/vim/vim/issues/3241)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 23 Jul 2018 04:15:05 +0200 |
parents | |
children | 8846b8344430 |
line wrap: on
line source
" Tests for parsing the modeline. func Test_invalid() " This was reading before allocated memory. call writefile(['vi:0', 'nothing'], 'Xmodeline') call assert_fails('split Xmodeline', 'E518:') bwipe! endfunc