mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
updated for version 7.3.573
Problem: Using array index before bounds checking. Solution: Swap the parts of the condition. (Dominique Pelle)
This commit is contained in:
@@ -6458,7 +6458,7 @@ line_count_info(line, wc, cc, limit, eol_size)
|
|||||||
long chars = 0;
|
long chars = 0;
|
||||||
int is_word = 0;
|
int is_word = 0;
|
||||||
|
|
||||||
for (i = 0; line[i] && i < limit; )
|
for (i = 0; i < limit && line[i] != NUL; )
|
||||||
{
|
{
|
||||||
if (is_word)
|
if (is_word)
|
||||||
{
|
{
|
||||||
|
@@ -714,6 +714,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
573,
|
||||||
/**/
|
/**/
|
||||||
572,
|
572,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user