mirror of
https://github.com/vim/vim.git
synced 2025-10-21 08:24:06 -04:00
patch 9.1.1746: Missing Null ptr check in cs_find_common()
Problem: Missing Null ptr check in cs_find_common() Solution: Return when tmp pointer is null (ashamedbit) fixes: #18225 closes: #18248 Signed-off-by: ashamedbit <muralianiruddhan@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
5291fe89b3
commit
12b9431eab
@@ -1232,6 +1232,9 @@ cs_find_common(
|
|||||||
qf_info_T *qi = NULL;
|
qf_info_T *qi = NULL;
|
||||||
win_T *wp = NULL;
|
win_T *wp = NULL;
|
||||||
|
|
||||||
|
if (tmp == NULL)
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
f = mch_fopen((char *)tmp, "w");
|
f = mch_fopen((char *)tmp, "w");
|
||||||
if (f == NULL)
|
if (f == NULL)
|
||||||
semsg(_(e_cant_open_file_str), tmp);
|
semsg(_(e_cant_open_file_str), tmp);
|
||||||
|
@@ -724,6 +724,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 */
|
||||||
|
/**/
|
||||||
|
1746,
|
||||||
/**/
|
/**/
|
||||||
1745,
|
1745,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user