0
0
mirror of https://github.com/vim/vim.git synced 2025-10-01 04:54:07 -04:00

patch 8.0.1475: invalid memory access in read_redo()

Problem:    Invalid memory access in read_redo(). (gy741)
Solution:   Convert the replacement character back from a negative number to
            CR or NL. (hint by Dominique Pelle, closes #2616)
This commit is contained in:
Bram Moolenaar
2018-02-06 22:52:49 +01:00
parent dd08b6a32b
commit f12519dec8
5 changed files with 43 additions and 11 deletions

View File

@@ -2515,4 +2515,8 @@ typedef enum {
# endif
#endif
/* Replacement for nchar used by nv_replace(). */
#define REPLACE_CR_NCHAR -1
#define REPLACE_NL_NCHAR -2
#endif /* VIM__H */