summaryrefslogtreecommitdiffstats
path: root/src/regexp.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-06-17 15:17:10 +0100
committerBram Moolenaar <Bram@vim.org>2022-06-17 15:17:10 +0100
commit616592e0816d2d9f893fcd95e3e1e0fbc5893168 (patch)
treef832a0c1dbe16fcbd944e4b735829279e75ea49d /src/regexp.c
parent5ea38d1e7fd597ffde13b292d43e12747f20e97f (diff)
patch 8.2.5115: search timeout is overrun with some patternsv8.2.5115
Problem: Search timeout is overrun with some patterns. Solution: Check for timeout in more places. Make the flag volatile and atomic. Use assert_inrange() to see what happened.
Diffstat (limited to 'src/regexp.c')
-rw-r--r--src/regexp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/regexp.c b/src/regexp.c
index 3d08d5a204..0a6a8af3d5 100644
--- a/src/regexp.c
+++ b/src/regexp.c
@@ -22,7 +22,7 @@
#ifdef FEAT_RELTIME
static int dummy_timeout_flag = 0;
-static const int *timeout_flag = &dummy_timeout_flag;
+static volatile int *timeout_flag = &dummy_timeout_flag;
#endif
/*