blob: 8530810f38d0dc73e586b2d546c00a8d1b635ce4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
To: vim_dev@googlegroups.com
Subject: Patch 8.1.0176
Fcc: outbox
From: Bram Moolenaar <Bram@moolenaar.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
------------
Patch 8.1.0176
Problem: Overlapping string argument for strcpy(). (Coverity)
Solution: Use STRMOVE() instead of STRCPY(). (Dominique Pelle, closes #3187)
Files: src/term.c
*** ../vim-8.1.0175/src/term.c Fri Jul 6 23:11:35 2018
--- src/term.c Tue Jul 10 17:31:59 2018
***************
*** 1483,1489 ****
if (term_7to8bit(t))
{
*t = term_7to8bit(t);
! STRCPY(t + 1, t + 2);
}
term_strings[p->bt_entry] = s;
set_term_option_alloced(&term_strings[p->bt_entry]);
--- 1483,1489 ----
if (term_7to8bit(t))
{
*t = term_7to8bit(t);
! STRMOVE(t + 1, t + 2);
}
term_strings[p->bt_entry] = s;
set_term_option_alloced(&term_strings[p->bt_entry]);
*** ../vim-8.1.0175/src/version.c Tue Jul 10 15:22:28 2018
--- src/version.c Tue Jul 10 17:32:50 2018
***************
*** 791,792 ****
--- 791,794 ----
{ /* Add new patch number below this line */
+ /**/
+ 176,
/**/
--
hundred-and-one symptoms of being an internet addict:
223. You set up a web-cam as your home's security system.
/// 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 ///
|