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:
parent
eb05d05f8a
commit
df9070e300
@ -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)
|
||||
|
@ -755,6 +755,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
3375,
|
||||
/**/
|
||||
3374,
|
||||
/**/
|
||||
|
Loading…
x
Reference in New Issue
Block a user