0
0
mirror of https://github.com/vim/vim.git synced 2025-09-28 04:24:06 -04:00

patch 8.2.1090: may use NULL pointer when skipping over name

Problem:    May use NULL pointer when skipping over name.
Solution:   Always set ll_name_end.
This commit is contained in:
Bram Moolenaar
2020-06-29 22:31:36 +02:00
parent 927b7dd0fe
commit 9b5384b97e
2 changed files with 5 additions and 1 deletions

View File

@@ -734,7 +734,9 @@ get_lval(
{
// When skipping just find the end of the name.
lp->ll_name = name;
return find_name_end(name, NULL, NULL, FNE_INCL_BR | fne_flags);
lp->ll_name_end = find_name_end(name, NULL, NULL,
FNE_INCL_BR | fne_flags);
return lp->ll_name_end;
}
// Find the end of the name.