|
Karsten Hopp |
f557e0 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
f557e0 |
Subject: Patch 7.3.573
|
|
Karsten Hopp |
f557e0 |
Fcc: outbox
|
|
Karsten Hopp |
f557e0 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
f557e0 |
Mime-Version: 1.0
|
|
Karsten Hopp |
f557e0 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
f557e0 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
f557e0 |
------------
|
|
Karsten Hopp |
f557e0 |
|
|
Karsten Hopp |
f557e0 |
Patch 7.3.573
|
|
Karsten Hopp |
f557e0 |
Problem: Using array index before bounds checking.
|
|
Karsten Hopp |
f557e0 |
Solution: Swap the parts of the condition. (Dominique Pelle)
|
|
Karsten Hopp |
f557e0 |
Files: src/ops.c
|
|
Karsten Hopp |
f557e0 |
|
|
Karsten Hopp |
f557e0 |
|
|
Karsten Hopp |
f557e0 |
*** ../vim-7.3.572/src/ops.c 2012-06-13 17:28:51.000000000 +0200
|
|
Karsten Hopp |
f557e0 |
--- src/ops.c 2012-06-29 13:27:11.000000000 +0200
|
|
Karsten Hopp |
f557e0 |
***************
|
|
Karsten Hopp |
f557e0 |
*** 6458,6464 ****
|
|
Karsten Hopp |
f557e0 |
long chars = 0;
|
|
Karsten Hopp |
f557e0 |
int is_word = 0;
|
|
Karsten Hopp |
f557e0 |
|
|
Karsten Hopp |
f557e0 |
! for (i = 0; line[i] && i < limit; )
|
|
Karsten Hopp |
f557e0 |
{
|
|
Karsten Hopp |
f557e0 |
if (is_word)
|
|
Karsten Hopp |
f557e0 |
{
|
|
Karsten Hopp |
f557e0 |
--- 6458,6464 ----
|
|
Karsten Hopp |
f557e0 |
long chars = 0;
|
|
Karsten Hopp |
f557e0 |
int is_word = 0;
|
|
Karsten Hopp |
f557e0 |
|
|
Karsten Hopp |
f557e0 |
! for (i = 0; i < limit && line[i] != NUL; )
|
|
Karsten Hopp |
f557e0 |
{
|
|
Karsten Hopp |
f557e0 |
if (is_word)
|
|
Karsten Hopp |
f557e0 |
{
|
|
Karsten Hopp |
f557e0 |
*** ../vim-7.3.572/src/version.c 2012-06-29 13:19:23.000000000 +0200
|
|
Karsten Hopp |
f557e0 |
--- src/version.c 2012-06-29 13:27:59.000000000 +0200
|
|
Karsten Hopp |
f557e0 |
***************
|
|
Karsten Hopp |
f557e0 |
*** 716,717 ****
|
|
Karsten Hopp |
f557e0 |
--- 716,719 ----
|
|
Karsten Hopp |
f557e0 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
f557e0 |
+ /**/
|
|
Karsten Hopp |
f557e0 |
+ 573,
|
|
Karsten Hopp |
f557e0 |
/**/
|
|
Karsten Hopp |
f557e0 |
|
|
Karsten Hopp |
f557e0 |
--
|
|
Karsten Hopp |
f557e0 |
"Thou shalt not follow the Null Pointer, for at its end Chaos and
|
|
Karsten Hopp |
f557e0 |
Madness lie."
|
|
Karsten Hopp |
f557e0 |
|
|
Karsten Hopp |
f557e0 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
f557e0 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
f557e0 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
f557e0 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|