]> granicus.if.org Git - vim/commit
patch 8.1.2119: memory access error for empty string v8.1.2119
authorBram Moolenaar <Bram@vim.org>
Sun, 6 Oct 2019 18:08:38 +0000 (20:08 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 6 Oct 2019 18:08:38 +0000 (20:08 +0200)
commit524f3b19ae16e08350010b5effe38d0637349285
treed9c8c147f89b0961474a4b5dcda2321bca36a53d
parenteb66328bd78c3001d71138306325718cb1c94712
patch 8.1.2119: memory access error for empty string

Problem:    memory access error for empty string when 'encoding' is a single
            byte encoding.
Solution:   Check for empty string when getting the length. (Dominique Pelle,
            closes #5021, closes #5007)
src/macros.h
src/version.c