Patch 8.2.3375

4 views
Skip to first unread message

Bram Moolenaar

unread,
Aug 25, 2021, 11:32:24 AM8/25/21
to vim...@googlegroups.com

Patch 8.2.3375
Problem: Using uninitialized memory.
Solution: Initialize textprop_save_len.
Files: src/memline.c


*** ../vim-8.2.3374/src/memline.c 2021-08-25 16:40:00.063305313 +0200
--- src/memline.c 2021-08-25 17:29:01.353710096 +0200
***************
*** 289,294 ****
--- 289,295 ----
buf->b_ml.ml_line_lnum = 0; // no cached line
#ifdef FEAT_BYTEOFF
buf->b_ml.ml_chunksize = NULL;
+ buf->b_ml.ml_usedchunks = 0;
#endif

if (cmdmod.cmod_flags & CMOD_NOSWAPFILE)
***************
*** 3607,3613 ****
int ret = FAIL;
#ifdef FEAT_PROP_POPUP
char_u *textprop_save = NULL;
! int textprop_save_len;
#endif

if (lowest_marked && lowest_marked > lnum)
--- 3608,3614 ----
int ret = FAIL;
#ifdef FEAT_PROP_POPUP
char_u *textprop_save = NULL;
! int textprop_save_len = 0;
#endif

if (lowest_marked && lowest_marked > lnum)
*** ../vim-8.2.3374/src/version.c 2021-08-25 17:10:35.479921268 +0200
--- src/version.c 2021-08-25 17:31:17.933402492 +0200
***************
*** 757,758 ****
--- 757,760 ----
{ /* Add new patch number below this line */
+ /**/
+ 3375,
/**/

--
Computers make very fast, very accurate, mistakes.

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages