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