comparison src/vim.h @ 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 cad480bac9e1
children 0a69e6e708f9
comparison
equal deleted inserted replaced
14160:de4575cbbb2b 14161:7cac4646c552
1011 1011
1012 #ifdef FEAT_SYN_HL 1012 #ifdef FEAT_SYN_HL
1013 /* values for reg_do_extmatch */ 1013 /* values for reg_do_extmatch */
1014 # define REX_SET 1 /* to allow \z\(...\), */ 1014 # define REX_SET 1 /* to allow \z\(...\), */
1015 # define REX_USE 2 /* to allow \z\1 et al. */ 1015 # define REX_USE 2 /* to allow \z\1 et al. */
1016 # define REX_ALL (REX_SET | REX_USE)
1016 #endif 1017 #endif
1017 1018
1018 /* Return values for fullpathcmp() */ 1019 /* Return values for fullpathcmp() */
1019 /* Note: can use (fullpathcmp() & FPC_SAME) to check for equal files */ 1020 /* Note: can use (fullpathcmp() & FPC_SAME) to check for equal files */
1020 #define FPC_SAME 1 /* both exist and are the same file. */ 1021 #define FPC_SAME 1 /* both exist and are the same file. */