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.3 / 7.3.558 < prev    next >
Encoding:
Internet Message Format  |  2012-11-20  |  2.9 KB

  1. To: vim_dev@googlegroups.com
  2. Subject: Patch 7.3.558
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 7.3.558
  11. Problem:    Memory access error. (Gary Johnson)
  12. Solution:   Allocate one more byte. (Dominique Pelle)
  13. Files:        src/misc1.c
  14.  
  15.  
  16. *** ../vim-7.3.557/src/misc1.c    2012-06-14 20:59:20.000000000 +0200
  17. --- src/misc1.c    2012-06-20 12:34:57.000000000 +0200
  18. ***************
  19. *** 460,466 ****
  20.        *
  21.        * I'm not sure if regmmatch_T (multi-match) is needed in this case.
  22.        * It may be true that this section would work properly using the
  23. !      * regmatch_T code above, in which case, these two seperate sections
  24.        * should be consolidated w/ FEAT_COMMENTS making lead_len > 0...
  25.        */
  26.   #endif
  27. --- 460,466 ----
  28.        *
  29.        * I'm not sure if regmmatch_T (multi-match) is needed in this case.
  30.        * It may be true that this section would work properly using the
  31. !      * regmatch_T code above, in which case, these two separate sections
  32.        * should be consolidated w/ FEAT_COMMENTS making lead_len > 0...
  33.        */
  34.   #endif
  35. ***************
  36. *** 1053,1061 ****
  37.       }
  38.       if (lead_len)
  39.       {
  40. !         /* allocate buffer (may concatenate p_exta later) */
  41.           leader = alloc(lead_len + lead_repl_len + extra_space + extra_len
  42. !              + (second_line_indent > 0 ? second_line_indent : 0));
  43.           allocated = leader;            /* remember to free it later */
  44.   
  45.           if (leader == NULL)
  46. --- 1053,1061 ----
  47.       }
  48.       if (lead_len)
  49.       {
  50. !         /* allocate buffer (may concatenate p_extra later) */
  51.           leader = alloc(lead_len + lead_repl_len + extra_space + extra_len
  52. !              + (second_line_indent > 0 ? second_line_indent : 0) + 1);
  53.           allocated = leader;            /* remember to free it later */
  54.   
  55.           if (leader == NULL)
  56. ***************
  57. *** 3342,3348 ****
  58.           buf = alloc(buflen);
  59.       else if (maxlen < 10)
  60.       {
  61. !         /* Need some more space. This migth happen when receiving a long
  62.            * escape sequence. */
  63.           buflen += 100;
  64.           buf = vim_realloc(buf, buflen);
  65. --- 3342,3348 ----
  66.           buf = alloc(buflen);
  67.       else if (maxlen < 10)
  68.       {
  69. !         /* Need some more space. This might happen when receiving a long
  70.            * escape sequence. */
  71.           buflen += 100;
  72.           buf = vim_realloc(buf, buflen);
  73. *** ../vim-7.3.557/src/version.c    2012-06-20 11:54:55.000000000 +0200
  74. --- src/version.c    2012-06-20 12:36:29.000000000 +0200
  75. ***************
  76. *** 716,717 ****
  77. --- 716,719 ----
  78.   {   /* Add new patch number below this line */
  79. + /**/
  80. +     558,
  81.   /**/
  82.  
  83. -- 
  84. George:  "I just got a new set of golf clubs for my wife!"
  85.   John:  "Great trade!"
  86.  
  87.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  88. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  89. \\\  an exciting new programming language -- http://www.Zimbu.org        ///
  90.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  91.