mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 8.1.1023: may use NULL pointer when indexing a blob
Problem: May use NULL pointer when indexing a blob. (Coverity) Solution: Break out of loop after using index on blob
This commit is contained in:
@@ -2208,6 +2208,7 @@ get_lval(
|
|||||||
}
|
}
|
||||||
lp->ll_blob = lp->ll_tv->vval.v_blob;
|
lp->ll_blob = lp->ll_tv->vval.v_blob;
|
||||||
lp->ll_tv = NULL;
|
lp->ll_tv = NULL;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -9219,7 +9220,9 @@ last_set_msg(sctx_T script_ctx)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* reset v:option_new, v:option_old and v:option_type */
|
/*
|
||||||
|
* Reset v:option_new, v:option_old and v:option_type.
|
||||||
|
*/
|
||||||
void
|
void
|
||||||
reset_v_option_vars(void)
|
reset_v_option_vars(void)
|
||||||
{
|
{
|
||||||
|
@@ -779,6 +779,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 */
|
||||||
|
/**/
|
||||||
|
1023,
|
||||||
/**/
|
/**/
|
||||||
1022,
|
1022,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user