mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 7.4.1471
Problem: Missing out-of-memory check. And Coverity warning. Solution: Bail out when msg is NULL.
This commit is contained in:
@@ -1516,6 +1516,9 @@ may_invoke_callback(channel_T *channel, int part)
|
|||||||
* get everything we have. */
|
* get everything we have. */
|
||||||
msg = channel_get_all(channel, part);
|
msg = channel_get_all(channel, part);
|
||||||
|
|
||||||
|
if (msg == NULL)
|
||||||
|
return FALSE; /* out of memory (and avoids Coverity warning) */
|
||||||
|
|
||||||
argv[1].v_type = VAR_STRING;
|
argv[1].v_type = VAR_STRING;
|
||||||
argv[1].vval.v_string = msg;
|
argv[1].vval.v_string = msg;
|
||||||
}
|
}
|
||||||
|
@@ -743,6 +743,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 */
|
||||||
|
/**/
|
||||||
|
1471,
|
||||||
/**/
|
/**/
|
||||||
1470,
|
1470,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user