mirror of
https://github.com/vim/vim.git
synced 2025-09-29 04:34:16 -04:00
patch 8.2.0642: Vim9: using invalid index
Problem: Vim9: using invalid index. Solution: Check index for being valid. Fix memory leak.
This commit is contained in:
@@ -473,6 +473,7 @@ cmdsrv_main(
|
|||||||
# ifdef FEAT_GUI_MSWIN
|
# ifdef FEAT_GUI_MSWIN
|
||||||
Shell_NotifyIcon(NIM_DELETE, &ni);
|
Shell_NotifyIcon(NIM_DELETE, &ni);
|
||||||
# endif
|
# endif
|
||||||
|
vim_free(done);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (STRICMP(argv[i], "--remote-expr") == 0)
|
else if (STRICMP(argv[i], "--remote-expr") == 0)
|
||||||
|
@@ -746,6 +746,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
642,
|
||||||
/**/
|
/**/
|
||||||
641,
|
641,
|
||||||
/**/
|
/**/
|
||||||
|
@@ -5822,12 +5822,13 @@ compile_mult_expr(char_u *arg, int cmdidx, cctx_T *cctx)
|
|||||||
compile_exec(char_u *line, exarg_T *eap, cctx_T *cctx)
|
compile_exec(char_u *line, exarg_T *eap, cctx_T *cctx)
|
||||||
{
|
{
|
||||||
char_u *p;
|
char_u *p;
|
||||||
int has_expr;
|
int has_expr = FALSE;
|
||||||
|
|
||||||
if (cctx->ctx_skip == TRUE)
|
if (cctx->ctx_skip == TRUE)
|
||||||
goto theend;
|
goto theend;
|
||||||
|
|
||||||
has_expr = (excmd_get_argt(eap->cmdidx) & (EX_XFILE | EX_EXPAND));
|
if (eap->cmdidx >= 0 && eap->cmdidx < CMD_SIZE)
|
||||||
|
has_expr = (excmd_get_argt(eap->cmdidx) & (EX_XFILE | EX_EXPAND));
|
||||||
if (eap->cmdidx == CMD_syntax && STRNCMP(eap->arg, "include ", 8) == 0)
|
if (eap->cmdidx == CMD_syntax && STRNCMP(eap->arg, "include ", 8) == 0)
|
||||||
{
|
{
|
||||||
// expand filename in "syntax include [@group] filename"
|
// expand filename in "syntax include [@group] filename"
|
||||||
|
Reference in New Issue
Block a user