patch 9.1.1746: Missing Null ptr check in cs_find_common()

Commit: 
https://github.com/vim/vim/commit/12b9431eab62e92eff90618c4fdcd94e54a81043
Author: ashamedbit <[email protected]>
Date:   Tue Sep 9 15:21:57 2025 -0400

    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 <[email protected]>
    Signed-off-by: Christian Brabandt <[email protected]>

diff --git a/src/if_cscope.c b/src/if_cscope.c
index 478a99f16..e571dd754 100644
--- a/src/if_cscope.c
+++ b/src/if_cscope.c
@@ -1232,6 +1232,9 @@ cs_find_common(
        qf_info_T   *qi = NULL;
        win_T       *wp = NULL;
 
+       if (tmp == NULL)
+           return FALSE;
+
        f = mch_fopen((char *)tmp, "w");
        if (f == NULL)
            semsg(_(e_cant_open_file_str), tmp);
diff --git a/src/version.c b/src/version.c
index 46a2bd232..7a08d7a98 100644
--- a/src/version.c
+++ b/src/version.c
@@ -724,6 +724,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1746,
 /**/
     1745,
 /**/

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/vim_dev/E1uw42X-00E6mE-1f%40256bit.org.

Raspunde prin e-mail lui