mirror of
https://github.com/neovim/neovim.git
synced 2025-09-19 09:48:19 +00:00
vim-patch:8.2.0634: crash with null partial and blob
Problem: Crash with null partial and blob.
Solution: Check for NULL pointer. Add more tests. (Yegappan Lakshmanan,
closes vim/vim#5984)
92b83ccfda
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
@@ -4059,7 +4059,10 @@ char *partial_name(partial_T *pt)
|
||||
if (pt->pt_name != NULL) {
|
||||
return pt->pt_name;
|
||||
}
|
||||
return pt->pt_func->uf_name;
|
||||
if (pt->pt_func != NULL) {
|
||||
return pt->pt_func->uf_name;
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
static void partial_free(partial_T *pt)
|
||||
|
Reference in New Issue
Block a user