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:
@@ -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.
|
||||||
|
@@ -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,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user