diff options
author | Bram Moolenaar <Bram@vim.org> | 2012-06-29 13:34:19 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2012-06-29 13:34:19 +0200 |
commit | 88b1ba151ae7bb66dc92c85f1eb63fe7fcc03051 (patch) | |
tree | 37f79b98a0f3847b8b09640582b7596bf8940848 | |
parent | a53c60d33c917455857de96a44e109da7d305d8a (diff) | |
download | vim-git-88b1ba151ae7bb66dc92c85f1eb63fe7fcc03051.tar.gz |
updated for version 7.3.573v7.3.573
Problem: Using array index before bounds checking.
Solution: Swap the parts of the condition. (Dominique Pelle)
-rw-r--r-- | src/ops.c | 2 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -6458,7 +6458,7 @@ line_count_info(line, wc, cc, limit, eol_size) long chars = 0; int is_word = 0; - for (i = 0; line[i] && i < limit; ) + for (i = 0; i < limit && line[i] != NUL; ) { if (is_word) { diff --git a/src/version.c b/src/version.c index d424af75f..ebe198810 100644 --- a/src/version.c +++ b/src/version.c @@ -715,6 +715,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 573, +/**/ 572, /**/ 571, |