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 / 7.1 / 7.1.053 < prev    next >
Encoding:
Internet Message Format  |  2007-11-19  |  1.4 KB

  1. To: vim-dev@vim.org
  2. Subject: patch 7.1.053
  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 7.1.053
  11. Problem:    Accessing uninitialized memory when giving a message.
  12. Solution:   Check going the length before checking for a NUL byte.
  13. Files:        src/message.c
  14.  
  15.  
  16. *** ../vim-7.1.052/src/message.c    Thu Jul  5 10:10:29 2007
  17. --- src/message.c    Sat Aug  4 23:13:58 2007
  18. ***************
  19. *** 1842,1848 ****
  20.       int        wrap;
  21.   
  22.       did_wait_return = FALSE;
  23. !     while (*s != NUL && (maxlen < 0 || (int)(s - str) < maxlen))
  24.       {
  25.       /*
  26.        * We are at the end of the screen line when:
  27. --- 1842,1848 ----
  28.       int        wrap;
  29.   
  30.       did_wait_return = FALSE;
  31. !     while ((maxlen < 0 || (int)(s - str) < maxlen) && *s != NUL)
  32.       {
  33.       /*
  34.        * We are at the end of the screen line when:
  35. *** ../vim-7.1.052/src/version.c    Sun Aug  5 18:49:07 2007
  36. --- src/version.c    Sun Aug  5 19:18:46 2007
  37. ***************
  38. *** 668,669 ****
  39. --- 668,671 ----
  40.   {   /* Add new patch number below this line */
  41. + /**/
  42. +     53,
  43.   /**/
  44.  
  45. -- 
  46. From "know your smileys":
  47.  <>:-)    Bishop
  48.  
  49.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  50. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  51. \\\        download, build and distribute -- http://www.A-A-P.org        ///
  52.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  53.