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

Patch 6.4.007

Expand Messages
  • Bram Moolenaar
    Patch 6.4.007 Problem: Crash when expanding a file name argument in backticks. (Adri Verhoef) Solution: Check for the NUL after the expansion result.
    Message 1 of 1 , Feb 8, 2006
    • 0 Attachment
      Patch 6.4.007
      Problem: Crash when expanding a file name argument in backticks. (Adri
      Verhoef)
      Solution: Check for the NUL after the expansion result.
      Files: src/os_unix.c


      *** ../vim-6.4.006/src/os_unix.c Sat Oct 8 16:39:10 2005
      --- src/os_unix.c Thu Feb 2 12:48:28 2006
      ***************
      *** 5051,5057 ****
      /* Space or NL separates */
      if (shell_style == STYLE_ECHO || shell_style == STYLE_BT)
      {
      ! while (!(shell_style == STYLE_ECHO && *p == ' ') && *p != '\n')
      ++p;
      if (p == buffer + len) /* last entry */
      *p = NUL;
      --- 5051,5058 ----
      /* Space or NL separates */
      if (shell_style == STYLE_ECHO || shell_style == STYLE_BT)
      {
      ! while (!(shell_style == STYLE_ECHO && *p == ' ')
      ! && *p != '\n' && *p != NUL)
      ++p;
      if (p == buffer + len) /* last entry */
      *p = NUL;
      *** ../vim-6.4.006/src/version.c Thu Dec 22 22:39:11 2005
      --- src/version.c Wed Feb 8 11:10:30 2006
      ***************
      *** 643,644 ****
      --- 643,646 ----
      { /* Add new patch number below this line */
      + /**/
      + 7,
      /**/

      --
      "My particular problem is with registry entries, which seem to just accumulate
      like plastic coffee cups..." -- Paul Moore

      /// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
      /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
      \\\ download, build and distribute -- http://www.A-A-P.org ///
      \\\ help me help AIDS victims -- http://www.ICCF.nl ///
    Your message has been successfully submitted and would be delivered to recipients shortly.