mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user