diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-11-25 13:39:28 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-11-25 13:39:28 +0000 |
commit | 0bd8d0563853ab821a018fb9cdd85f674684fe57 (patch) | |
tree | 8c8f0c4b1fec95272e1977ddf73715c9a63ba5e8 /src/globals.h | |
parent | 71b36206be14c3b6334765d44a38d413eca751c7 (diff) | |
download | vim-git-0bd8d0563853ab821a018fb9cdd85f674684fe57.tar.gz |
patch 8.2.3673: crash when allocating signal stack failsv8.2.3673
Problem: Crash when allocating signal stack fails.
Solution: Only using sourcing info when available. (closes #9215)
Diffstat (limited to 'src/globals.h')
-rw-r--r-- | src/globals.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/globals.h b/src/globals.h index 90998d875..8f4f5a575 100644 --- a/src/globals.h +++ b/src/globals.h @@ -288,6 +288,7 @@ EXTERN int msg_no_more INIT(= FALSE); // don't use more prompt, truncate * Current context is at ga_len - 1. */ EXTERN garray_T exestack INIT5(0, 0, sizeof(estack_T), 50, NULL); +#define HAVE_SOURCING_INFO (exestack.ga_data != NULL && exestack.ga_len > 0) // name of error message source #define SOURCING_NAME (((estack_T *)exestack.ga_data)[exestack.ga_len - 1].es_name) // line number in the message source or zero |