Skip to content

Commit df9070e

Browse files
committed
patch 8.2.3375: using uninitialized memory
Problem: Using uninitialized memory. Solution: Initialize textprop_save_len.
1 parent eb05d05 commit df9070e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/memline.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,7 @@ ml_open(buf_T *buf)
289289
buf->b_ml.ml_line_lnum = 0; // no cached line
290290
#ifdef FEAT_BYTEOFF
291291
buf->b_ml.ml_chunksize = NULL;
292+
buf->b_ml.ml_usedchunks = 0;
292293
#endif
293294

294295
if (cmdmod.cmod_flags & CMOD_NOSWAPFILE)
@@ -3607,7 +3608,7 @@ ml_delete_int(buf_T *buf, linenr_T lnum, int flags)
36073608
int ret = FAIL;
36083609
#ifdef FEAT_PROP_POPUP
36093610
char_u *textprop_save = NULL;
3610-
int textprop_save_len;
3611+
int textprop_save_len = 0;
36113612
#endif
36123613

36133614
if (lowest_marked && lowest_marked > lnum)

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -755,6 +755,8 @@ static char *(features[]) =
755755

756756
static int included_patches[] =
757757
{ /* Add new patch number below this line */
758+
/**/
759+
3375,
758760
/**/
759761
3374,
760762
/**/

0 commit comments

Comments
 (0)