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

Patch 6.1.272

Expand Messages
  • Bram Moolenaar
    Patch 6.1.272 Problem: After using :set define
    Message 1 of 1 , Jan 5, 2003
      Patch 6.1.272
      Problem: After using ":set define<" a crash may happen. (Christian Robinson)
      Solution: Make a copy of the option value in allocated memory.
      Files: src/option.c


      *** ../vim61.271/src/option.c Sun Nov 10 13:33:34 2002
      --- src/option.c Sat Jan 4 13:26:29 2003
      ***************
      *** 3496,3504 ****
      }
      else if (nextchar == '<') /* set to global val */
      {
      ! newval = *(char_u **)get_varp_scope(
      ! &(options[opt_idx]), OPT_GLOBAL);
      ! new_value_alloced = FALSE;
      }
      else
      {
      --- 3498,3506 ----
      }
      else if (nextchar == '<') /* set to global val */
      {
      ! newval = vim_strsave(*(char_u **)get_varp_scope(
      ! &(options[opt_idx]), OPT_GLOBAL));
      ! new_value_alloced = TRUE;
      }
      else
      {
      *** ../vim61.271/src/version.c Fri Jan 3 22:48:00 2003
      --- src/version.c Sun Jan 5 13:27:40 2003
      ***************
      *** 608,609 ****
      --- 608,611 ----
      { /* Add new patch number below this line */
      + /**/
      + 272,
      /**/

      --
      Not too long ago, unzipping in public was illegal...

      /// 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.