forked from aniani/vim
patch 8.0.1499: out-of-memory situation not correctly handled
Problem: Out-of-memory situation not correctly handled. (Coverity) Solution: Check for NULL value.
This commit is contained in:
@@ -3153,6 +3153,8 @@ f_term_scrape(typval_T *argvars, typval_T *rettv)
|
|||||||
bg = cell.bg;
|
bg = cell.bg;
|
||||||
}
|
}
|
||||||
dcell = dict_alloc();
|
dcell = dict_alloc();
|
||||||
|
if (dcell == NULL)
|
||||||
|
break;
|
||||||
list_append_dict(l, dcell);
|
list_append_dict(l, dcell);
|
||||||
|
|
||||||
dict_add_nr_str(dcell, "chars", 0, mbs);
|
dict_add_nr_str(dcell, "chars", 0, mbs);
|
||||||
|
@@ -771,6 +771,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 */
|
||||||
|
/**/
|
||||||
|
1499,
|
||||||
/**/
|
/**/
|
||||||
1498,
|
1498,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user