0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.0.1503: access memory beyond end of string

Problem:    Access memory beyond end of string. (Coverity)
Solution:   Keep allocated memory in separate pointer.  Avoid outputting the
            NUL character.
This commit is contained in:
Bram Moolenaar
2018-02-11 15:38:40 +01:00
parent 71a43c0137
commit cdd09aa51a
2 changed files with 6 additions and 9 deletions

View File

@@ -771,6 +771,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1503,
/**/
1502,
/**/