Please sign in to comment.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 #3241)
- Loading branch information
Showing with 24 additions and 9 deletions.
|@@ -0,0 +1,8 @@|
|" Tests for parsing the modeline.|
|" This was reading before allocated memory.|
|call writefile(['vi:0', 'nothing'], 'Xmodeline')|
|call assert_fails('split Xmodeline', 'E518:')|