home *** CD-ROM | disk | FTP | other *** search
- To: vim-dev@vim.org
- Subject: Patch 6.1.267
- Fcc: outbox
- From: Bram Moolenaar <Bram@moolenaar.net>
- Mime-Version: 1.0
- Content-Type: text/plain; charset=ISO-8859-1
- Content-Transfer-Encoding: 8bit
- ------------
-
- Patch 6.1.267
- Problem: Using "p" to paste into a Visual selected area may cause a crash.
- Solution: Allocate enough memory for saving the register contents. (Muraoka
- Taro)
- Files: src/ops.c
-
-
- *** ../vim61.266/src/ops.c Sun Oct 27 20:54:51 2002
- --- src/ops.c Sat Dec 28 17:27:29 2002
- ***************
- *** 868,874 ****
- if (copy)
- {
- /* If we run out of memory some or all of the lines are empty. */
- ! reg->y_array = (char_u **)alloc((unsigned)sizeof(char_u *));
- if (reg->y_array != NULL)
- {
- for (i = 0; i < reg->y_size; ++i)
- --- 868,875 ----
- if (copy)
- {
- /* If we run out of memory some or all of the lines are empty. */
- ! reg->y_array = (char_u **)alloc((unsigned)(sizeof(char_u *)
- ! * reg->y_size));
- if (reg->y_array != NULL)
- {
- for (i = 0; i < reg->y_size; ++i)
- *** ../vim61.266/src/version.c Mon Dec 23 22:54:36 2002
- --- src/version.c Sat Dec 28 17:30:41 2002
- ***************
- *** 608,609 ****
- --- 608,611 ----
- { /* Add new patch number below this line */
- + /**/
- + 267,
- /**/
-
- --
- If Microsoft would build a car...
- ... You'd have to press the "Start" button to turn the engine off.
-
- /// Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net \\\
- /// Creator of Vim - Vi IMproved -- http://www.vim.org \\\
- \\\ Project leader for A-A-P -- http://www.a-a-p.org ///
- \\\ Lord Of The Rings helps Uganda - http://iccf-holland.org/lotr.html ///
-