0
0
mirror of https://github.com/vim/vim.git synced 2025-10-13 06:54:15 -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. // When skipping just find the end of the name.
lp->ll_name = 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. // Find the end of the name.

View File

@@ -754,6 +754,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1090,
/**/ /**/
1089, 1089,
/**/ /**/