forked from aniani/vim
patch 8.2.2585: Vim9: illegal memory access
Problem: Vim9: illegal memory access. Solution: Check byte right after "null", not one more.
This commit is contained in:
parent
d345fb9216
commit
c23555de34
@ -750,6 +750,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
2585,
|
||||
/**/
|
||||
2584,
|
||||
/**/
|
||||
|
@ -4184,7 +4184,7 @@ compile_expr7(
|
||||
* "null" constant
|
||||
*/
|
||||
case 'n': if (STRNCMP(*arg, "null", 4) == 0
|
||||
&& !eval_isnamec((*arg)[5]))
|
||||
&& !eval_isnamec((*arg)[4]))
|
||||
{
|
||||
*arg += 4;
|
||||
rettv->v_type = VAR_SPECIAL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user