From a255618e22152ca2e5fd361a3d0762e9db20dd80 Mon Sep 17 00:00:00 2001 From: Sam Bingner Date: Wed, 5 Jun 2019 22:02:50 -1000 Subject: Update vim to 8.1.1471 --- data/vim/patches/8.1.1342 | 55 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 data/vim/patches/8.1.1342 (limited to 'data/vim/patches/8.1.1342') diff --git a/data/vim/patches/8.1.1342 b/data/vim/patches/8.1.1342 new file mode 100644 index 000000000..b221e9bca --- /dev/null +++ b/data/vim/patches/8.1.1342 @@ -0,0 +1,55 @@ +To: vim_dev@googlegroups.com +Subject: Patch 8.1.1342 +Fcc: outbox +From: Bram Moolenaar +Mime-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit +------------ + +Patch 8.1.1342 +Problem: Using freed memory when joining line with text property. +Solution: Use already computed length. +Files: src/ops.c + + +*** ../vim-8.1.1341/src/ops.c 2019-05-17 19:56:29.860129184 +0200 +--- src/ops.c 2019-05-17 20:15:24.378020917 +0200 +*************** +*** 4635,4641 **** + { + /* Set the '] mark. */ + curwin->w_buffer->b_op_end.lnum = curwin->w_cursor.lnum; +! curwin->w_buffer->b_op_end.col = (colnr_T)STRLEN(newp); + } + + /* Only report the change in the first line here, del_lines() will report +--- 4635,4641 ---- + { + /* Set the '] mark. */ + curwin->w_buffer->b_op_end.lnum = curwin->w_cursor.lnum; +! curwin->w_buffer->b_op_end.col = (colnr_T)sumsize; + } + + /* Only report the change in the first line here, del_lines() will report +*** ../vim-8.1.1341/src/version.c 2019-05-17 19:56:29.860129184 +0200 +--- src/version.c 2019-05-17 20:16:56.669433301 +0200 +*************** +*** 769,770 **** +--- 769,772 ---- + { /* Add new patch number below this line */ ++ /**/ ++ 1342, + /**/ + +-- +I once paid $12 to peer at the box that held King Tutankhamen's little +bandage-covered midget corpse at the De Young Museum in San Francisco. I +remember thinking how pleased he'd be about the way things turned out in his +afterlife. + (Scott Adams - The Dilbert principle) + + /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ +/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ +\\\ an exciting new programming language -- http://www.Zimbu.org /// + \\\ help me help AIDS victims -- http://ICCF-Holland.org /// -- cgit v1.2.3