0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

patch 8.2.3375: using uninitialized memory

Problem:    Using uninitialized memory.
Solution:   Initialize textprop_save_len.
This commit is contained in:
Bram Moolenaar 2021-08-25 17:31:37 +02:00
parent eb05d05f8a
commit df9070e300
2 changed files with 4 additions and 1 deletions

View File

@ -289,6 +289,7 @@ ml_open(buf_T *buf)
buf->b_ml.ml_line_lnum = 0; // no cached line buf->b_ml.ml_line_lnum = 0; // no cached line
#ifdef FEAT_BYTEOFF #ifdef FEAT_BYTEOFF
buf->b_ml.ml_chunksize = NULL; buf->b_ml.ml_chunksize = NULL;
buf->b_ml.ml_usedchunks = 0;
#endif #endif
if (cmdmod.cmod_flags & CMOD_NOSWAPFILE) if (cmdmod.cmod_flags & CMOD_NOSWAPFILE)
@ -3607,7 +3608,7 @@ ml_delete_int(buf_T *buf, linenr_T lnum, int flags)
int ret = FAIL; int ret = FAIL;
#ifdef FEAT_PROP_POPUP #ifdef FEAT_PROP_POPUP
char_u *textprop_save = NULL; char_u *textprop_save = NULL;
int textprop_save_len; int textprop_save_len = 0;
#endif #endif
if (lowest_marked && lowest_marked > lnum) if (lowest_marked && lowest_marked > lnum)

View File

@ -755,6 +755,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 */
/**/
3375,
/**/ /**/
3374, 3374,
/**/ /**/