mirror of
https://github.com/neovim/neovim.git
synced 2025-09-22 11:18:19 +00:00
vim-patch:7.4.937
Problem: Segfault reading unitialized memory.
Solution: Do not read match \z0, it does not exist. (Marius Gedminas, closes
vim/vim#497)
5ad075c073
This commit is contained in:
@@ -6180,7 +6180,8 @@ static long nfa_regtry(nfa_regprog_T *prog, colnr_T col)
|
|||||||
if (prog->reghasz == REX_SET) {
|
if (prog->reghasz == REX_SET) {
|
||||||
cleanup_zsubexpr();
|
cleanup_zsubexpr();
|
||||||
re_extmatch_out = make_extmatch();
|
re_extmatch_out = make_extmatch();
|
||||||
for (i = 0; i < subs.synt.in_use; i++) {
|
// Loop over \z1, \z2, etc. There is no \z0.
|
||||||
|
for (i = 1; i < subs.synt.in_use; i++) {
|
||||||
if (REG_MULTI) {
|
if (REG_MULTI) {
|
||||||
struct multipos *mpos = &subs.synt.list.multi[i];
|
struct multipos *mpos = &subs.synt.list.multi[i];
|
||||||
|
|
||||||
|
@@ -351,7 +351,7 @@ static int included_patches[] = {
|
|||||||
// 940 NA
|
// 940 NA
|
||||||
// 939,
|
// 939,
|
||||||
// 938 NA
|
// 938 NA
|
||||||
// 937,
|
937,
|
||||||
// 936,
|
// 936,
|
||||||
// 935,
|
// 935,
|
||||||
// 934 NA
|
// 934 NA
|
||||||
|
Reference in New Issue
Block a user