diff options
author | bfredl <bjorn.linse@gmail.com> | 2023-04-17 13:08:53 +0200 |
---|---|---|
committer | bfredl <bjorn.linse@gmail.com> | 2023-04-19 16:34:15 +0200 |
commit | aee6f08ce12a62e9104892702a658a8d3daee4df (patch) | |
tree | 3a9e9b6f0e546fe3f685a1de2a074118ed19c860 /src/nvim/regexp.h | |
parent | 7bf1a917b78ebc622b6691af9196b95b4a9d3142 (diff) | |
download | rneovim-aee6f08ce12a62e9104892702a658a8d3daee4df.tar.gz rneovim-aee6f08ce12a62e9104892702a658a8d3daee4df.tar.bz2 rneovim-aee6f08ce12a62e9104892702a658a8d3daee4df.zip |
fix(runtime): do not allow breakcheck inside runtime path calculation
problem: breakcheck might run arbitrary lua code, which might require
modules and thus invoke runtime path calculation recursively.
solution: Block the use of breakcheck when expanding glob patterns
inside 'runtimepath'
fixes #23012
Diffstat (limited to 'src/nvim/regexp.h')
-rw-r--r-- | src/nvim/regexp.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/regexp.h b/src/nvim/regexp.h index dcc58fa34c..95296a5f90 100644 --- a/src/nvim/regexp.h +++ b/src/nvim/regexp.h @@ -10,6 +10,7 @@ #define RE_STRING 2 ///< match in string instead of buffer text #define RE_STRICT 4 ///< don't allow [abc] without ] #define RE_AUTO 8 ///< automatic engine selection +#define RE_NOBREAK 16 ///< don't use breakcheck functions // values for reg_do_extmatch #define REX_SET 1 ///< to allow \z\(...\), |