Mirror of the Vim source from https://github.com/vim/vim
Revisión | aa8fa32cdca3d9bdc698c892036489916d128253 (tree) |
---|---|
Tiempo | 2021-01-18 06:15:05 |
Autor | Bram Moolenaar <Bram@vim....> |
Commiter | Bram Moolenaar |
patch 8.2.2374: accessing uninitialized memory in test_undo
Commit: https://github.com/vim/vim/commit/82aa6e09e02b138ab7ee6b79ecac487813f117e5
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jan 17 22:04:02 2021 +0100
@@ -1586,7 +1586,7 @@ | ||
1586 | 1586 | // Recognize: |
1587 | 1587 | // form 0: {lead}{key};{modifier}u |
1588 | 1588 | // form 1: {lead}27;{modifier};{key}~ |
1589 | - if ((c == CSI || (c == ESC && *p == '[')) && typebuf.tb_len >= 4) | |
1589 | + if (typebuf.tb_len >= 4 && (c == CSI || (c == ESC && *p == '['))) | |
1590 | 1590 | { |
1591 | 1591 | idx = (*p == '['); |
1592 | 1592 | if (p[idx] == '2' && p[idx + 1] == '7' && p[idx + 2] == ';') |
@@ -751,6 +751,8 @@ | ||
751 | 751 | static int included_patches[] = |
752 | 752 | { /* Add new patch number below this line */ |
753 | 753 | /**/ |
754 | + 2374, | |
755 | +/**/ | |
754 | 756 | 2373, |
755 | 757 | /**/ |
756 | 758 | 2372, |