|
Karsten Hopp |
c7c67b |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
c7c67b |
Subject: Patch 7.3.757
|
|
Karsten Hopp |
c7c67b |
Fcc: outbox
|
|
Karsten Hopp |
c7c67b |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
c7c67b |
Mime-Version: 1.0
|
|
Karsten Hopp |
c7c67b |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
c7c67b |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
c7c67b |
------------
|
|
Karsten Hopp |
c7c67b |
|
|
Karsten Hopp |
c7c67b |
Patch 7.3.757
|
|
Karsten Hopp |
c7c67b |
Problem: Issue 96: May access freed memory when a put command triggers
|
|
Karsten Hopp |
c7c67b |
autocommands. (Dominique Pelle)
|
|
Karsten Hopp |
c7c67b |
Solution: Call u_save() before getting y_array.
|
|
Karsten Hopp |
c7c67b |
Files: src/ops.c
|
|
Karsten Hopp |
c7c67b |
|
|
Karsten Hopp |
c7c67b |
|
|
Karsten Hopp |
c7c67b |
*** ../vim-7.3.756/src/ops.c 2012-09-05 14:18:42.000000000 +0200
|
|
Karsten Hopp |
c7c67b |
--- src/ops.c 2012-12-12 16:03:35.000000000 +0100
|
|
Karsten Hopp |
c7c67b |
***************
|
|
Karsten Hopp |
c7c67b |
*** 3351,3356 ****
|
|
Karsten Hopp |
c7c67b |
--- 3351,3362 ----
|
|
Karsten Hopp |
c7c67b |
return;
|
|
Karsten Hopp |
c7c67b |
}
|
|
Karsten Hopp |
c7c67b |
|
|
Karsten Hopp |
c7c67b |
+ #ifdef FEAT_AUTOCMD
|
|
Karsten Hopp |
c7c67b |
+ /* Autocommands may be executed when saving lines for undo, which may make
|
|
Karsten Hopp |
c7c67b |
+ * y_array invalid. Start undo now to avoid that. */
|
|
Karsten Hopp |
c7c67b |
+ u_save(curwin->w_cursor.lnum, curwin->w_cursor.lnum + 1);
|
|
Karsten Hopp |
c7c67b |
+ #endif
|
|
Karsten Hopp |
c7c67b |
+
|
|
Karsten Hopp |
c7c67b |
if (insert_string != NULL)
|
|
Karsten Hopp |
c7c67b |
{
|
|
Karsten Hopp |
c7c67b |
y_type = MCHAR;
|
|
Karsten Hopp |
c7c67b |
*** ../vim-7.3.756/src/version.c 2012-12-12 15:55:16.000000000 +0100
|
|
Karsten Hopp |
c7c67b |
--- src/version.c 2012-12-12 16:06:47.000000000 +0100
|
|
Karsten Hopp |
c7c67b |
***************
|
|
Karsten Hopp |
c7c67b |
*** 727,728 ****
|
|
Karsten Hopp |
c7c67b |
--- 727,730 ----
|
|
Karsten Hopp |
c7c67b |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
c7c67b |
+ /**/
|
|
Karsten Hopp |
c7c67b |
+ 757,
|
|
Karsten Hopp |
c7c67b |
/**/
|
|
Karsten Hopp |
c7c67b |
|
|
Karsten Hopp |
c7c67b |
--
|
|
Karsten Hopp |
c7c67b |
We are the Borg of GNU GPL. We will assimilate your source code.
|
|
Karsten Hopp |
c7c67b |
Resistance is futile.
|
|
Karsten Hopp |
c7c67b |
|
|
Karsten Hopp |
c7c67b |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
c7c67b |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
c7c67b |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
c7c67b |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|