mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -04:00
patch 7.4.2225
Problem: Crash when placing a sign in a deleted buffer. Solution: Check for missing buffer name. (Dominique Pelle). Add a test.
This commit is contained in:
@@ -7861,6 +7861,11 @@ ex_sign(exarg_T *eap)
|
||||
{ /* ... not currently in a window */
|
||||
char_u *cmd;
|
||||
|
||||
if (buf->b_fname == NULL)
|
||||
{
|
||||
EMSG(_("E934: Cannot jump to a buffer that does not have a name"));
|
||||
return;
|
||||
}
|
||||
cmd = alloc((unsigned)STRLEN(buf->b_fname) + 25);
|
||||
if (cmd == NULL)
|
||||
return;
|
||||
|
Reference in New Issue
Block a user