home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 6.0.129 < prev    next >
Encoding:
Internet Message Format  |  2002-01-11  |  1.4 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.0.129
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=ISO-8859-1
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 6.0.129
  11. Problem:    When using a very long file name, ":ls" (repeated a few times) 
  12.             causes a crash.  Test with "vim `perl -e 'print "A"x1000'`".
  13.             (Tejeda)
  14. Solution:   Terminate a string before getting its length in buflist_list().
  15. Files:      src/buffer.c
  16.  
  17.  
  18. *** ../vim60.128/src/buffer.c    Wed Sep 19 12:37:17 2001
  19. --- src/buffer.c    Sat Jan 12 16:35:12 2002
  20. ***************
  21. *** 2091,2096 ****
  22. --- 2091,2097 ----
  23.   
  24.       len = (int)STRLEN(IObuff);
  25.       STRNCPY(IObuff + len, NameBuff, IOSIZE - 20 - len);
  26. +     IObuff[IOSIZE - 20 - len] = NUL;    /* make sure it's terminated */
  27.   
  28.       len = (int)STRLEN(IObuff);
  29.       IObuff[len++] = '"';
  30. *** ../vim60.128/src/version.c    Sat Jan 12 16:22:05 2002
  31. --- src/version.c    Sat Jan 12 16:39:02 2002
  32. ***************
  33. *** 608,609 ****
  34. --- 608,611 ----
  35.   {   /* Add new patch number below this line */
  36. + /**/
  37. +     129,
  38.   /**/
  39.  
  40. -- 
  41. BLACK KNIGHT: I'm invincible!
  42. ARTHUR:       You're a looney.
  43.                  "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
  44.  
  45.  ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
  46. (((   Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim   )))
  47.  \\\  Help me helping AIDS orphans in Uganda - http://iccf-holland.org  ///
  48.