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.
diff --git a/src/terminal.c b/src/terminal.c
index b67cd6c..6b8d353 100644
--- a/src/terminal.c
+++ b/src/terminal.c
@@ -3153,6 +3153,8 @@
bg = cell.bg;
}
dcell = dict_alloc();
+ if (dcell == NULL)
+ break;
list_append_dict(l, dcell);
dict_add_nr_str(dcell, "chars", 0, mbs);
diff --git a/src/version.c b/src/version.c
index 97d2390..a7cc0e4 100644
--- a/src/version.c
+++ b/src/version.c
@@ -772,6 +772,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1499,
+/**/
1498,
/**/
1497,