Loading ...
Sorry, an error occurred while loading the content.
 

Patch 6.1.267

Expand Messages
  • Bram Moolenaar
    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
    Message 1 of 1 , Dec 28, 2002
      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@... -- 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 ///
    Your message has been successfully submitted and would be delivered to recipients shortly.