forked from aniani/vim
patch 8.0.0333: illegal memory access when 'complete' ends in a backslash
Problem: Illegal memory access when 'complete' ends in a backslash. Solution: Check for trailing backslash. (Dominique Pelle, closes #1478)
This commit is contained in:
@@ -7017,7 +7017,7 @@ did_set_string_option(
|
||||
/* skip optional filename after 'k' and 's' */
|
||||
while (*s && *s != ',' && *s != ' ')
|
||||
{
|
||||
if (*s == '\\')
|
||||
if (*s == '\\' && s[1] != NUL)
|
||||
++s;
|
||||
++s;
|
||||
}
|
||||
|
Reference in New Issue
Block a user