diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-06-23 14:21:42 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-06-23 14:21:42 +0200 |
commit | bcf9442307075bac40d44328c8bf7ea21857b138 (patch) | |
tree | 6890b363128e8cbffe09b274ecd1b1665393fac1 /src/globals.h | |
parent | 5efa0102de6ed6049fb19e1e83787e5b3b24b6a2 (diff) |
patch 8.1.0098: segfault when pattern with \z() is very slowv8.1.0098
Problem: Segfault when pattern with \z() is very slow.
Solution: Check for NULL regprog. Add "nfa_fail" to test_override() to be
able to test this. Fix that 'searchhl' resets called_emsg.
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 db3a73f2e9..8750859596 100644 --- a/src/globals.h +++ b/src/globals.h @@ -1634,6 +1634,7 @@ EXTERN int alloc_fail_repeat INIT(= 0); /* flags set by test_override() */ EXTERN int disable_char_avail_for_testing INIT(= 0); EXTERN int disable_redraw_for_testing INIT(= 0); +EXTERN int nfa_fail_for_testing INIT(= 0); EXTERN int in_free_unref_items INIT(= FALSE); #endif |