mirror of
https://github.com/vim/vim.git
synced 2025-09-27 04:14:06 -04:00
patch 8.1.1342: using freed memory when joining line with text property
Problem: Using freed memory when joining line with text property. Solution: Use already computed length.
This commit is contained in:
@@ -4635,7 +4635,7 @@ do_join(
|
|||||||
{
|
{
|
||||||
/* Set the '] mark. */
|
/* Set the '] mark. */
|
||||||
curwin->w_buffer->b_op_end.lnum = curwin->w_cursor.lnum;
|
curwin->w_buffer->b_op_end.lnum = curwin->w_cursor.lnum;
|
||||||
curwin->w_buffer->b_op_end.col = (colnr_T)STRLEN(newp);
|
curwin->w_buffer->b_op_end.col = (colnr_T)sumsize;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Only report the change in the first line here, del_lines() will report
|
/* Only report the change in the first line here, del_lines() will report
|
||||||
|
@@ -767,6 +767,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1342,
|
||||||
/**/
|
/**/
|
||||||
1341,
|
1341,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user