|
Karsten Hopp |
5bf557 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
5bf557 |
Subject: Patch 7.4.789
|
|
Karsten Hopp |
5bf557 |
Fcc: outbox
|
|
Karsten Hopp |
5bf557 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
5bf557 |
Mime-Version: 1.0
|
|
Karsten Hopp |
5bf557 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
5bf557 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
5bf557 |
------------
|
|
Karsten Hopp |
5bf557 |
|
|
Karsten Hopp |
5bf557 |
Patch 7.4.789 (after 7.4.788)
|
|
Karsten Hopp |
5bf557 |
Problem: Using freed memory and crash. (Dominique Pellej)
|
|
Karsten Hopp |
5bf557 |
Solution: Correct use of pointers. (Hirohito Higashi)
|
|
Karsten Hopp |
5bf557 |
Files: src/option.c
|
|
Karsten Hopp |
5bf557 |
|
|
Karsten Hopp |
5bf557 |
|
|
Karsten Hopp |
5bf557 |
*** ../vim-7.4.788/src/option.c 2015-07-17 23:08:18.200915641 +0200
|
|
Karsten Hopp |
5bf557 |
--- src/option.c 2015-07-19 14:36:23.112460392 +0200
|
|
Karsten Hopp |
5bf557 |
***************
|
|
Karsten Hopp |
5bf557 |
*** 4943,4949 ****
|
|
Karsten Hopp |
5bf557 |
|
|
Karsten Hopp |
5bf557 |
sprintf((char *)buf_type, "%s",
|
|
Karsten Hopp |
5bf557 |
(opt_flags & OPT_LOCAL) ? "local" : "global");
|
|
Karsten Hopp |
5bf557 |
! set_vim_var_string(VV_OPTION_NEW, newval, -1);
|
|
Karsten Hopp |
5bf557 |
set_vim_var_string(VV_OPTION_OLD, saved_origval, -1);
|
|
Karsten Hopp |
5bf557 |
set_vim_var_string(VV_OPTION_TYPE, buf_type, -1);
|
|
Karsten Hopp |
5bf557 |
apply_autocmds(EVENT_OPTIONSET,
|
|
Karsten Hopp |
5bf557 |
--- 4943,4950 ----
|
|
Karsten Hopp |
5bf557 |
|
|
Karsten Hopp |
5bf557 |
sprintf((char *)buf_type, "%s",
|
|
Karsten Hopp |
5bf557 |
(opt_flags & OPT_LOCAL) ? "local" : "global");
|
|
Karsten Hopp |
5bf557 |
! set_vim_var_string(VV_OPTION_NEW,
|
|
Karsten Hopp |
5bf557 |
! *(char_u **)varp, -1);
|
|
Karsten Hopp |
5bf557 |
set_vim_var_string(VV_OPTION_OLD, saved_origval, -1);
|
|
Karsten Hopp |
5bf557 |
set_vim_var_string(VV_OPTION_TYPE, buf_type, -1);
|
|
Karsten Hopp |
5bf557 |
apply_autocmds(EVENT_OPTIONSET,
|
|
Karsten Hopp |
5bf557 |
***************
|
|
Karsten Hopp |
5bf557 |
*** 5738,5745 ****
|
|
Karsten Hopp |
5bf557 |
char_u buf_type[7];
|
|
Karsten Hopp |
5bf557 |
sprintf((char *)buf_type, "%s",
|
|
Karsten Hopp |
5bf557 |
(opt_flags & OPT_LOCAL) ? "local" : "global");
|
|
Karsten Hopp |
5bf557 |
! set_vim_var_string(VV_OPTION_NEW, s, -1);
|
|
Karsten Hopp |
5bf557 |
! set_vim_var_string(VV_OPTION_OLD, oldval, -1);
|
|
Karsten Hopp |
5bf557 |
set_vim_var_string(VV_OPTION_TYPE, buf_type, -1);
|
|
Karsten Hopp |
5bf557 |
apply_autocmds(EVENT_OPTIONSET, (char_u *)options[opt_idx].fullname, NULL, FALSE, NULL);
|
|
Karsten Hopp |
5bf557 |
reset_v_option_vars();
|
|
Karsten Hopp |
5bf557 |
--- 5739,5746 ----
|
|
Karsten Hopp |
5bf557 |
char_u buf_type[7];
|
|
Karsten Hopp |
5bf557 |
sprintf((char *)buf_type, "%s",
|
|
Karsten Hopp |
5bf557 |
(opt_flags & OPT_LOCAL) ? "local" : "global");
|
|
Karsten Hopp |
5bf557 |
! set_vim_var_string(VV_OPTION_NEW, *varp, -1);
|
|
Karsten Hopp |
5bf557 |
! set_vim_var_string(VV_OPTION_OLD, saved_oldval, -1);
|
|
Karsten Hopp |
5bf557 |
set_vim_var_string(VV_OPTION_TYPE, buf_type, -1);
|
|
Karsten Hopp |
5bf557 |
apply_autocmds(EVENT_OPTIONSET, (char_u *)options[opt_idx].fullname, NULL, FALSE, NULL);
|
|
Karsten Hopp |
5bf557 |
reset_v_option_vars();
|
|
Karsten Hopp |
5bf557 |
*** ../vim-7.4.788/src/version.c 2015-07-17 23:08:18.204915603 +0200
|
|
Karsten Hopp |
5bf557 |
--- src/version.c 2015-07-19 14:38:31.815247734 +0200
|
|
Karsten Hopp |
5bf557 |
***************
|
|
Karsten Hopp |
5bf557 |
*** 743,744 ****
|
|
Karsten Hopp |
5bf557 |
--- 743,746 ----
|
|
Karsten Hopp |
5bf557 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
5bf557 |
+ /**/
|
|
Karsten Hopp |
5bf557 |
+ 789,
|
|
Karsten Hopp |
5bf557 |
/**/
|
|
Karsten Hopp |
5bf557 |
|
|
Karsten Hopp |
5bf557 |
--
|
|
Karsten Hopp |
5bf557 |
Google is kind of like Dr. Who's Tardis; it's weirder on the
|
|
Karsten Hopp |
5bf557 |
inside than on the outside...
|
|
Karsten Hopp |
5bf557 |
|
|
Karsten Hopp |
5bf557 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
5bf557 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
5bf557 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
5bf557 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|