Mercurial > vim
comparison src/evalfunc.c @ 14161:7cac4646c552 v8.1.0098
patch 8.1.0098: segfault when pattern with z() is very slow
commit https://github.com/vim/vim/commit/bcf9442307075bac40d44328c8bf7ea21857b138
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jun 23 14:21:42 2018 +0200
patch 8.1.0098: segfault when pattern with \z() is very slow
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.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 23 Jun 2018 14:30:07 +0200 |
parents | de75c249723d |
children | 2ad722003b36 |
comparison
equal
deleted
inserted
replaced
14160:de4575cbbb2b | 14161:7cac4646c552 |
---|---|
13088 { | 13088 { |
13089 starting = save_starting; | 13089 starting = save_starting; |
13090 save_starting = -1; | 13090 save_starting = -1; |
13091 } | 13091 } |
13092 } | 13092 } |
13093 else if (STRCMP(name, (char_u *)"nfa_fail") == 0) | |
13094 nfa_fail_for_testing = val; | |
13093 else if (STRCMP(name, (char_u *)"ALL") == 0) | 13095 else if (STRCMP(name, (char_u *)"ALL") == 0) |
13094 { | 13096 { |
13095 disable_char_avail_for_testing = FALSE; | 13097 disable_char_avail_for_testing = FALSE; |
13096 disable_redraw_for_testing = FALSE; | 13098 disable_redraw_for_testing = FALSE; |
13099 nfa_fail_for_testing = FALSE; | |
13097 if (save_starting >= 0) | 13100 if (save_starting >= 0) |
13098 { | 13101 { |
13099 starting = save_starting; | 13102 starting = save_starting; |
13100 save_starting = -1; | 13103 save_starting = -1; |
13101 } | 13104 } |