To: vim_dev@googlegroups.com Subject: Patch 8.2.2585 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.2585 Problem: Vim9: illegal memory access. Solution: Check byte right after "null", not one more. Files: src/vim9compile.c *** ../vim-8.2.2584/src/vim9compile.c 2021-03-10 18:43:05.573396183 +0100 --- src/vim9compile.c 2021-03-10 19:02:39.858889130 +0100 *************** *** 4184,4190 **** * "null" constant */ case 'n': if (STRNCMP(*arg, "null", 4) == 0 ! && !eval_isnamec((*arg)[5])) { *arg += 4; rettv->v_type = VAR_SPECIAL; --- 4184,4190 ---- * "null" constant */ case 'n': if (STRNCMP(*arg, "null", 4) == 0 ! && !eval_isnamec((*arg)[4])) { *arg += 4; rettv->v_type = VAR_SPECIAL; *** ../vim-8.2.2584/src/version.c 2021-03-10 18:43:05.573396183 +0100 --- src/version.c 2021-03-10 19:03:40.510780260 +0100 *************** *** 752,753 **** --- 752,755 ---- { /* Add new patch number below this line */ + /**/ + 2585, /**/ -- ARTHUR: I've said I'm sorry about the old woman, but from the behind you looked ... DENNIS: What I object to is that you automatically treat me like an inferior... ARTHUR: Well ... I AM king. "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///