forked from aniani/vim
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;
|
||||
int is_word = 0;
|
||||
|
||||
for (i = 0; line[i] && i < limit; )
|
||||
for (i = 0; i < limit && line[i] != NUL; )
|
||||
{
|
||||
if (is_word)
|
||||
{
|
||||
|
@@ -714,6 +714,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
573,
|
||||
/**/
|
||||
572,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user