1
0
forked from aniani/vim

patch 8.2.0240: using memory after it was freed

Problem:    Using memory after it was freed. (Dominique Pelle)
Solution:   Do not mix converion buffer with other buffer.
This commit is contained in:
Bram Moolenaar
2020-02-10 22:44:32 +01:00
parent 355757aed6
commit 408030e8d0
3 changed files with 23 additions and 17 deletions

View File

@@ -1129,20 +1129,6 @@ extern int (*dyn_libintl_wputenv)(const wchar_t *envstring);
#define VIMINFO_VERSION_WITH_REGISTERS 3
#define VIMINFO_VERSION_WITH_MARKS 4
typedef enum {
BVAL_NR,
BVAL_STRING,
BVAL_EMPTY
} btype_T;
typedef struct {
btype_T bv_type;
long bv_nr;
char_u *bv_string;
int bv_len; // length of bv_string
int bv_allocated; // bv_string was allocated
} bval_T;
/*
* Values for do_tag().
*/