File vim-8.0.1568-CVE-2021-46059.patch of Package vim.23083
--- vim-8.0.1568.orig/src/ex_cmds.c 2022-02-03 20:50:13.621648993 +0200 +++ vim-8.0.1568/src/ex_cmds.c 2022-02-16 15:59:43.110120395 +0200 @@ -6013,6 +6013,8 @@ /* a match on this line? */ match = vim_regexec_multi(®match, curwin, curbuf, lnum, (colnr_T)0, NULL, NULL); + if (regmatch.regprog == NULL) + break; // re-compiling regprog failed if ((type == 'g' && match) || (type == 'v' && !match)) { ml_setmarked(lnum);