4
From: Bram Moolenaar <Bram@moolenaar.net>
6
Content-Type: text/plain; charset=ISO-8859-1
7
Content-Transfer-Encoding: 8bit
11
Problem: In a few places a string in allocated memory is not terminated
13
Solution: Add ga_append(NUL) in script_get(), gui_do_findrepl() and
15
Files: src/ex_getln.c, src/gui.c, src/if_xcmdsrv.c
18
*** ../vim-6.3.023/src/ex_getln.c Fri Jul 9 22:21:01 2004
19
--- src/ex_getln.c Sun Sep 5 20:29:52 2004
26
+ ga_append(&ga, NUL);
28
return (char_u *)ga.ga_data;
30
*** ../vim-6.3.023/src/gui.c Wed Jun 9 14:56:25 2004
31
--- src/gui.c Sun Sep 5 20:33:02 2004
35
ga_concat(&ga, (char_u *)"/");
36
concat_esc(&ga, repl_text, '/'); /* escape slashes */
37
ga_concat(&ga, (char_u *)"/g");
38
+ ga_append(&ga, NUL);
39
do_cmdline_cmd(ga.ga_data);
43
/* Search for the next match. */
45
+ ga_append(&ga, NUL);
46
do_search(NULL, down ? '/' : '?', ga.ga_data, 1L,
47
SEARCH_MSG + SEARCH_MARK);
48
msg_scroll = i; /* don't let an error message set msg_scroll */
49
*** ../vim-6.3.023/src/if_xcmdsrv.c Wed Jun 9 14:56:26 2004
50
--- src/if_xcmdsrv.c Sun Sep 5 20:33:48 2004
55
if (regProp != empty_prop)
57
+ ga_append(&ga, NUL);
61
*** ../vim-6.3.023/src/version.c Sat Sep 4 19:43:59 2004
62
--- src/version.c Sun Sep 5 20:47:49 2004
66
{ /* Add new patch number below this line */
72
LAUNCELOT: At last! A call! A cry of distress ...
73
(he draws his sword, and turns to CONCORDE)
74
Concorde! Brave, Concorde ... you shall not have died in vain!
75
CONCORDE: I'm not quite dead, sir ...
76
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
78
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
79
/// Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
80
\\\ Project leader for A-A-P -- http://www.A-A-P.org ///
81
\\\ Buy at Amazon and help AIDS victims -- http://ICCF.nl/click1.html ///