]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.0.0220: invalid memory access with for loop over NULL string v9.0.0220
authorBram Moolenaar <Bram@vim.org>
Tue, 16 Aug 2022 16:50:38 +0000 (17:50 +0100)
committerBram Moolenaar <Bram@vim.org>
Tue, 16 Aug 2022 16:50:38 +0000 (17:50 +0100)
commitf6d39c31d2177549a986d170e192d8351bd571e2
tree88571362c680104807bb5201a8e1f52871b8de39
parent948a3894d98f5e2a6e7fc57189fe9c2a5919eebf
patch 9.0.0220: invalid memory access with for loop over NULL string

Problem:    Invalid memory access with for loop over NULL string.
Solution:   Make sure mb_ptr2len() consistently returns zero for NUL.
src/globals.h
src/mbyte.c
src/testdir/test_eval_stuff.vim
src/version.c