Mirror of the Vim source from https://github.com/vim/vim
Révision | 6d7fe3af5aa2895bab0d4418fe5561fe15377820 (tree) |
---|---|
l'heure | 2022-01-16 20:45:03 |
Auteur | Bram Moolenaar <Bram@vim....> |
Commiter | Bram Moolenaar |
patch 8.2.4106: going over the end of the w_lines array
Commit: https://github.com/vim/vim/commit/fa1a45705995f16ee7e69434c772107a3ddeeebd
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jan 16 11:42:20 2022 +0000
@@ -2539,6 +2539,11 @@ | ||
2539 | 2539 | eof = TRUE; |
2540 | 2540 | break; |
2541 | 2541 | } |
2542 | + | |
2543 | + // Safety check: if any of the wl_size values is wrong we might go over | |
2544 | + // the end of w_lines[]. | |
2545 | + if (idx >= Rows) | |
2546 | + break; | |
2542 | 2547 | } |
2543 | 2548 | |
2544 | 2549 | // End of loop over all window lines. |
@@ -751,6 +751,8 @@ | ||
751 | 751 | static int included_patches[] = |
752 | 752 | { /* Add new patch number below this line */ |
753 | 753 | /**/ |
754 | + 4106, | |
755 | +/**/ | |
754 | 756 | 4105, |
755 | 757 | /**/ |
756 | 758 | 4104, |