|
Karsten Hopp |
00e0e8 |
To: vim-dev@vim.org
|
|
Karsten Hopp |
00e0e8 |
Subject: Patch 7.1.330
|
|
Karsten Hopp |
00e0e8 |
Fcc: outbox
|
|
Karsten Hopp |
00e0e8 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
00e0e8 |
Mime-Version: 1.0
|
|
Karsten Hopp |
00e0e8 |
Content-Type: text/plain; charset=ISO-8859-1
|
|
Karsten Hopp |
00e0e8 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
00e0e8 |
------------
|
|
Karsten Hopp |
00e0e8 |
|
|
Karsten Hopp |
00e0e8 |
Patch 7.1.330
|
|
Karsten Hopp |
00e0e8 |
Problem: Reading uninitialized memory when using Del in replace mode.
|
|
Karsten Hopp |
00e0e8 |
Solution: Use utfc_ptr2len_len() instead of mb_ptr2len(). (Dominique Pelle)
|
|
Karsten Hopp |
00e0e8 |
Files: src/misc1.c
|
|
Karsten Hopp |
00e0e8 |
|
|
Karsten Hopp |
00e0e8 |
|
|
Karsten Hopp |
00e0e8 |
*** ../vim-7.1.329/src/misc1.c Mon Feb 25 21:54:23 2008
|
|
Karsten Hopp |
00e0e8 |
--- src/misc1.c Sat Jun 21 16:02:34 2008
|
|
Karsten Hopp |
00e0e8 |
***************
|
|
Karsten Hopp |
00e0e8 |
*** 1880,1894 ****
|
|
Karsten Hopp |
00e0e8 |
# ifdef FEAT_MBYTE
|
|
Karsten Hopp |
00e0e8 |
int n;
|
|
Karsten Hopp |
00e0e8 |
|
|
Karsten Hopp |
00e0e8 |
! for (i = 0; i < len; i += n)
|
|
Karsten Hopp |
00e0e8 |
! {
|
|
Karsten Hopp |
00e0e8 |
! n = (*mb_ptr2len)(p + i);
|
|
Karsten Hopp |
00e0e8 |
! ins_char_bytes(p + i, n);
|
|
Karsten Hopp |
00e0e8 |
! }
|
|
Karsten Hopp |
00e0e8 |
! # else
|
|
Karsten Hopp |
00e0e8 |
! for (i = 0; i < len; ++i)
|
|
Karsten Hopp |
00e0e8 |
! ins_char(p[i]);
|
|
Karsten Hopp |
00e0e8 |
# endif
|
|
Karsten Hopp |
00e0e8 |
}
|
|
Karsten Hopp |
00e0e8 |
#endif
|
|
Karsten Hopp |
00e0e8 |
|
|
Karsten Hopp |
00e0e8 |
--- 1880,1899 ----
|
|
Karsten Hopp |
00e0e8 |
# ifdef FEAT_MBYTE
|
|
Karsten Hopp |
00e0e8 |
int n;
|
|
Karsten Hopp |
00e0e8 |
|
|
Karsten Hopp |
00e0e8 |
! if (has_mbyte)
|
|
Karsten Hopp |
00e0e8 |
! for (i = 0; i < len; i += n)
|
|
Karsten Hopp |
00e0e8 |
! {
|
|
Karsten Hopp |
00e0e8 |
! if (enc_utf8)
|
|
Karsten Hopp |
00e0e8 |
! /* avoid reading past p[len] */
|
|
Karsten Hopp |
00e0e8 |
! n = utfc_ptr2len_len(p + i, len - i);
|
|
Karsten Hopp |
00e0e8 |
! else
|
|
Karsten Hopp |
00e0e8 |
! n = (*mb_ptr2len)(p + i);
|
|
Karsten Hopp |
00e0e8 |
! ins_char_bytes(p + i, n);
|
|
Karsten Hopp |
00e0e8 |
! }
|
|
Karsten Hopp |
00e0e8 |
! else
|
|
Karsten Hopp |
00e0e8 |
# endif
|
|
Karsten Hopp |
00e0e8 |
+ for (i = 0; i < len; ++i)
|
|
Karsten Hopp |
00e0e8 |
+ ins_char(p[i]);
|
|
Karsten Hopp |
00e0e8 |
}
|
|
Karsten Hopp |
00e0e8 |
#endif
|
|
Karsten Hopp |
00e0e8 |
|
|
Karsten Hopp |
00e0e8 |
*** ../vim-7.1.329/src/version.c Sat Jun 21 14:13:51 2008
|
|
Karsten Hopp |
00e0e8 |
--- src/version.c Sat Jun 21 16:28:28 2008
|
|
Karsten Hopp |
00e0e8 |
***************
|
|
Karsten Hopp |
00e0e8 |
*** 668,669 ****
|
|
Karsten Hopp |
00e0e8 |
--- 673,676 ----
|
|
Karsten Hopp |
00e0e8 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
00e0e8 |
+ /**/
|
|
Karsten Hopp |
00e0e8 |
+ 330,
|
|
Karsten Hopp |
00e0e8 |
/**/
|
|
Karsten Hopp |
00e0e8 |
|
|
Karsten Hopp |
00e0e8 |
--
|
|
Karsten Hopp |
00e0e8 |
hundred-and-one symptoms of being an internet addict:
|
|
Karsten Hopp |
00e0e8 |
65. The last time you looked at the clock it was 11:30pm, and in what
|
|
Karsten Hopp |
00e0e8 |
seems like only a few seconds later, your sister runs past you to
|
|
Karsten Hopp |
00e0e8 |
catch her 7am school bus.
|
|
Karsten Hopp |
00e0e8 |
|
|
Karsten Hopp |
00e0e8 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
00e0e8 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
00e0e8 |
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
|
Karsten Hopp |
00e0e8 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|