mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
patch 7.4.1914
Problem: Executing autocommands while using the signal stack has a high chance of crashing Vim. Solution: Don't invoke autocommands when on the signal stack.
This commit is contained in:
parent
1610d05241
commit
e429e70f05
@ -1090,6 +1090,12 @@ deathtrap SIGDEFARG(sigarg)
|
|||||||
/* Remember how often we have been called. */
|
/* Remember how often we have been called. */
|
||||||
++entered;
|
++entered;
|
||||||
|
|
||||||
|
#ifdef FEAT_AUTOCMD
|
||||||
|
/* Executing autocommands is likely to use more stack space than we have
|
||||||
|
* available in the signal stack. */
|
||||||
|
block_autocmds();
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef FEAT_EVAL
|
#ifdef FEAT_EVAL
|
||||||
/* Set the v:dying variable. */
|
/* Set the v:dying variable. */
|
||||||
set_vim_var_nr(VV_DYING, (long)entered);
|
set_vim_var_nr(VV_DYING, (long)entered);
|
||||||
@ -1171,6 +1177,8 @@ deathtrap SIGDEFARG(sigarg)
|
|||||||
* calling free(). */
|
* calling free(). */
|
||||||
preserve_exit();
|
preserve_exit();
|
||||||
|
|
||||||
|
/* NOTREACHED */
|
||||||
|
|
||||||
#ifdef NBDEBUG
|
#ifdef NBDEBUG
|
||||||
reset_signals();
|
reset_signals();
|
||||||
may_core_dump();
|
may_core_dump();
|
||||||
|
@ -753,6 +753,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 */
|
||||||
|
/**/
|
||||||
|
1914,
|
||||||
/**/
|
/**/
|
||||||
1913,
|
1913,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user