mirror of
https://github.com/vim/vim.git
synced 2025-10-28 09:27:14 -04:00
patch 9.0.0212: invalid memory access when compiling :unlet
Problem: Invalid memory access when compiling :unlet. Solution: Don't read past the end of the line.
This commit is contained in:
@@ -1740,12 +1740,19 @@ def Test_lockvar()
|
||||
|
||||
lines =<< trim END
|
||||
def _()
|
||||
s:0([], s:0)
|
||||
lockv
|
||||
enddef
|
||||
defcomp
|
||||
END
|
||||
v9.CheckScriptFailure(lines, 'E179', 2)
|
||||
v9.CheckScriptFailure(lines, 'E179', 1)
|
||||
|
||||
lines =<< trim END
|
||||
def T()
|
||||
unlet
|
||||
enddef
|
||||
defcomp
|
||||
END
|
||||
v9.CheckScriptFailure(lines, 'E179', 1)
|
||||
enddef
|
||||
|
||||
def Test_substitute_expr()
|
||||
|
||||
Reference in New Issue
Block a user