0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.2.4931: Crash with sequence of Perl commands

Problem:    Crash with sequence of Perl commands.
Solution:   Move PUTBACK to another line. (closes #10386)
This commit is contained in:
Bram Moolenaar
2022-05-10 13:32:24 +01:00
parent 0abc2871c1
commit 0f267621c0
2 changed files with 3 additions and 1 deletions

View File

@@ -1373,6 +1373,7 @@ do_perleval(char_u *str, typval_T *rettv)
SPAGAIN;
SvREFCNT_dec(sv);
sv = POPs;
PUTBACK;
}
}
else
@@ -1383,7 +1384,6 @@ do_perleval(char_u *str, typval_T *rettv)
ref_map_free();
err = SvPV(GvSV(PL_errgv), err_len);
}
PUTBACK;
FREETMPS;
LEAVE;
}

View File

@@ -746,6 +746,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
4931,
/**/
4930,
/**/