|
Karsten Hopp |
ea8c32 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
ea8c32 |
Subject: Patch 7.3.558
|
|
Karsten Hopp |
ea8c32 |
Fcc: outbox
|
|
Karsten Hopp |
ea8c32 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
ea8c32 |
Mime-Version: 1.0
|
|
Karsten Hopp |
ea8c32 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
ea8c32 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
ea8c32 |
------------
|
|
Karsten Hopp |
ea8c32 |
|
|
Karsten Hopp |
ea8c32 |
Patch 7.3.558
|
|
Karsten Hopp |
ea8c32 |
Problem: Memory access error. (Gary Johnson)
|
|
Karsten Hopp |
ea8c32 |
Solution: Allocate one more byte. (Dominique Pelle)
|
|
Karsten Hopp |
ea8c32 |
Files: src/misc1.c
|
|
Karsten Hopp |
ea8c32 |
|
|
Karsten Hopp |
ea8c32 |
|
|
Karsten Hopp |
ea8c32 |
*** ../vim-7.3.557/src/misc1.c 2012-06-14 20:59:20.000000000 +0200
|
|
Karsten Hopp |
ea8c32 |
--- src/misc1.c 2012-06-20 12:34:57.000000000 +0200
|
|
Karsten Hopp |
ea8c32 |
***************
|
|
Karsten Hopp |
ea8c32 |
*** 460,466 ****
|
|
Karsten Hopp |
ea8c32 |
*
|
|
Karsten Hopp |
ea8c32 |
* I'm not sure if regmmatch_T (multi-match) is needed in this case.
|
|
Karsten Hopp |
ea8c32 |
* It may be true that this section would work properly using the
|
|
Karsten Hopp |
ea8c32 |
! * regmatch_T code above, in which case, these two seperate sections
|
|
Karsten Hopp |
ea8c32 |
* should be consolidated w/ FEAT_COMMENTS making lead_len > 0...
|
|
Karsten Hopp |
ea8c32 |
*/
|
|
Karsten Hopp |
ea8c32 |
#endif
|
|
Karsten Hopp |
ea8c32 |
--- 460,466 ----
|
|
Karsten Hopp |
ea8c32 |
*
|
|
Karsten Hopp |
ea8c32 |
* I'm not sure if regmmatch_T (multi-match) is needed in this case.
|
|
Karsten Hopp |
ea8c32 |
* It may be true that this section would work properly using the
|
|
Karsten Hopp |
ea8c32 |
! * regmatch_T code above, in which case, these two separate sections
|
|
Karsten Hopp |
ea8c32 |
* should be consolidated w/ FEAT_COMMENTS making lead_len > 0...
|
|
Karsten Hopp |
ea8c32 |
*/
|
|
Karsten Hopp |
ea8c32 |
#endif
|
|
Karsten Hopp |
ea8c32 |
***************
|
|
Karsten Hopp |
ea8c32 |
*** 1053,1061 ****
|
|
Karsten Hopp |
ea8c32 |
}
|
|
Karsten Hopp |
ea8c32 |
if (lead_len)
|
|
Karsten Hopp |
ea8c32 |
{
|
|
Karsten Hopp |
ea8c32 |
! /* allocate buffer (may concatenate p_exta later) */
|
|
Karsten Hopp |
ea8c32 |
leader = alloc(lead_len + lead_repl_len + extra_space + extra_len
|
|
Karsten Hopp |
ea8c32 |
! + (second_line_indent > 0 ? second_line_indent : 0));
|
|
Karsten Hopp |
ea8c32 |
allocated = leader; /* remember to free it later */
|
|
Karsten Hopp |
ea8c32 |
|
|
Karsten Hopp |
ea8c32 |
if (leader == NULL)
|
|
Karsten Hopp |
ea8c32 |
--- 1053,1061 ----
|
|
Karsten Hopp |
ea8c32 |
}
|
|
Karsten Hopp |
ea8c32 |
if (lead_len)
|
|
Karsten Hopp |
ea8c32 |
{
|
|
Karsten Hopp |
ea8c32 |
! /* allocate buffer (may concatenate p_extra later) */
|
|
Karsten Hopp |
ea8c32 |
leader = alloc(lead_len + lead_repl_len + extra_space + extra_len
|
|
Karsten Hopp |
ea8c32 |
! + (second_line_indent > 0 ? second_line_indent : 0) + 1);
|
|
Karsten Hopp |
ea8c32 |
allocated = leader; /* remember to free it later */
|
|
Karsten Hopp |
ea8c32 |
|
|
Karsten Hopp |
ea8c32 |
if (leader == NULL)
|
|
Karsten Hopp |
ea8c32 |
***************
|
|
Karsten Hopp |
ea8c32 |
*** 3342,3348 ****
|
|
Karsten Hopp |
ea8c32 |
buf = alloc(buflen);
|
|
Karsten Hopp |
ea8c32 |
else if (maxlen < 10)
|
|
Karsten Hopp |
ea8c32 |
{
|
|
Karsten Hopp |
ea8c32 |
! /* Need some more space. This migth happen when receiving a long
|
|
Karsten Hopp |
ea8c32 |
* escape sequence. */
|
|
Karsten Hopp |
ea8c32 |
buflen += 100;
|
|
Karsten Hopp |
ea8c32 |
buf = vim_realloc(buf, buflen);
|
|
Karsten Hopp |
ea8c32 |
--- 3342,3348 ----
|
|
Karsten Hopp |
ea8c32 |
buf = alloc(buflen);
|
|
Karsten Hopp |
ea8c32 |
else if (maxlen < 10)
|
|
Karsten Hopp |
ea8c32 |
{
|
|
Karsten Hopp |
ea8c32 |
! /* Need some more space. This might happen when receiving a long
|
|
Karsten Hopp |
ea8c32 |
* escape sequence. */
|
|
Karsten Hopp |
ea8c32 |
buflen += 100;
|
|
Karsten Hopp |
ea8c32 |
buf = vim_realloc(buf, buflen);
|
|
Karsten Hopp |
ea8c32 |
*** ../vim-7.3.557/src/version.c 2012-06-20 11:54:55.000000000 +0200
|
|
Karsten Hopp |
ea8c32 |
--- src/version.c 2012-06-20 12:36:29.000000000 +0200
|
|
Karsten Hopp |
ea8c32 |
***************
|
|
Karsten Hopp |
ea8c32 |
*** 716,717 ****
|
|
Karsten Hopp |
ea8c32 |
--- 716,719 ----
|
|
Karsten Hopp |
ea8c32 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
ea8c32 |
+ /**/
|
|
Karsten Hopp |
ea8c32 |
+ 558,
|
|
Karsten Hopp |
ea8c32 |
/**/
|
|
Karsten Hopp |
ea8c32 |
|
|
Karsten Hopp |
ea8c32 |
--
|
|
Karsten Hopp |
ea8c32 |
George: "I just got a new set of golf clubs for my wife!"
|
|
Karsten Hopp |
ea8c32 |
John: "Great trade!"
|
|
Karsten Hopp |
ea8c32 |
|
|
Karsten Hopp |
ea8c32 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
ea8c32 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
ea8c32 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
ea8c32 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|