From df9070e300dabf0c54de87a75973a80adb38afa3 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 25 Aug 2021 17:31:37 +0200 Subject: [PATCH] patch 8.2.3375: using uninitialized memory Problem: Using uninitialized memory. Solution: Initialize textprop_save_len. --- src/memline.c | 3 ++- src/version.c | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/memline.c b/src/memline.c index 2192036ed..9fc689f6c 100644 --- 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 flags) 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) diff --git a/src/version.c b/src/version.c index 0630ae6f9..5211f8fae 100644 --- a/src/version.c +++ b/src/version.c @@ -755,6 +755,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 3375, /**/ 3374, /**/ -- 2.50.1