Mirror of the Vim source from https://github.com/vim/vim
修訂 | 4cce4a5d3fd31108589cb329e8dd3e722cc959e0 (tree) |
---|---|
時間 | 2020-11-21 22:00:03 |
作者 | Bram Moolenaar <Bram@vim....> |
Commiter | Bram Moolenaar |
patch 8.2.2026: Coverity warns for possibly using not NUL terminated string
Commit: https://github.com/vim/vim/commit/e79cdb69a4905ccf766494265d4c6f8701d10c39
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Nov 21 13:51:16 2020 +0100
@@ -2252,6 +2252,7 @@ | ||
2252 | 2252 | |
2253 | 2253 | mch_get_host_name(hostname, B0_HNAME_SIZE); |
2254 | 2254 | hostname[B0_HNAME_SIZE - 1] = NUL; |
2255 | + b0.b0_hname[B0_HNAME_SIZE - 1] = NUL; // in case of corruption | |
2255 | 2256 | if (STRICMP(b0.b0_hname, hostname) != 0) |
2256 | 2257 | ret = FALSE; |
2257 | 2258 | } |
@@ -751,6 +751,8 @@ | ||
751 | 751 | static int included_patches[] = |
752 | 752 | { /* Add new patch number below this line */ |
753 | 753 | /**/ |
754 | + 2026, | |
755 | +/**/ | |
754 | 756 | 2025, |
755 | 757 | /**/ |
756 | 758 | 2024, |