changeset 25678:4da50e168dc9 v8.2.3375

patch 8.2.3375: using uninitialized memory Commit: https://github.com/vim/vim/commit/df9070e300dabf0c54de87a75973a80adb38afa3 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Aug 25 17:31:37 2021 +0200 patch 8.2.3375: using uninitialized memory Problem: Using uninitialized memory. Solution: Initialize textprop_save_len.
author Bram Moolenaar <Bram@vim.org>
date Wed, 25 Aug 2021 17:45:04 +0200
parents baa07b3a541a
children b633748f3acb
files src/memline.c src/version.c
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/memline.c
+++ b/src/memline.c
@@ -289,6 +289,7 @@ ml_open(buf_T *buf)
     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,7 +3608,7 @@ ml_delete_int(buf_T *buf, linenr_T lnum,
     int		ret = FAIL;
 #ifdef FEAT_PROP_POPUP
     char_u	*textprop_save = NULL;
-    int		textprop_save_len;
+    int		textprop_save_len = 0;
 #endif
 
     if (lowest_marked && lowest_marked > lnum)
--- a/src/version.c
+++ b/src/version.c
@@ -756,6 +756,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    3375,
+/**/
     3374,
 /**/
     3373,