|
Karsten Hopp |
cf3e56 |
To: vim-dev@vim.org
|
|
Karsten Hopp |
cf3e56 |
Subject: Patch 7.2.291
|
|
Karsten Hopp |
cf3e56 |
Fcc: outbox
|
|
Karsten Hopp |
cf3e56 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
cf3e56 |
Mime-Version: 1.0
|
|
Karsten Hopp |
cf3e56 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
cf3e56 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
cf3e56 |
------------
|
|
Karsten Hopp |
cf3e56 |
|
|
Karsten Hopp |
cf3e56 |
Patch 7.2.291
|
|
Karsten Hopp |
cf3e56 |
Problem: Reading uninitialised memory in arabic mode.
|
|
Karsten Hopp |
cf3e56 |
Solution: Use utfc_ptr2char_len() rather than utfc_ptr2char(). (Dominique
|
|
Karsten Hopp |
cf3e56 |
Pelle)
|
|
Karsten Hopp |
cf3e56 |
Files: src/screen.c
|
|
Karsten Hopp |
cf3e56 |
|
|
Karsten Hopp |
cf3e56 |
|
|
Karsten Hopp |
cf3e56 |
*** ../vim-7.2.290/src/screen.c 2009-11-03 17:36:09.000000000 +0100
|
|
Karsten Hopp |
cf3e56 |
--- src/screen.c 2009-11-11 17:04:53.000000000 +0100
|
|
Karsten Hopp |
cf3e56 |
***************
|
|
Karsten Hopp |
cf3e56 |
*** 6413,6419 ****
|
|
Karsten Hopp |
cf3e56 |
}
|
|
Karsten Hopp |
cf3e56 |
else
|
|
Karsten Hopp |
cf3e56 |
{
|
|
Karsten Hopp |
cf3e56 |
! nc = utfc_ptr2char(ptr + mbyte_blen, pcc);
|
|
Karsten Hopp |
cf3e56 |
nc1 = pcc[0];
|
|
Karsten Hopp |
cf3e56 |
}
|
|
Karsten Hopp |
cf3e56 |
pc = prev_c;
|
|
Karsten Hopp |
cf3e56 |
--- 6413,6420 ----
|
|
Karsten Hopp |
cf3e56 |
}
|
|
Karsten Hopp |
cf3e56 |
else
|
|
Karsten Hopp |
cf3e56 |
{
|
|
Karsten Hopp |
cf3e56 |
! nc = utfc_ptr2char_len(ptr + mbyte_blen, pcc,
|
|
Karsten Hopp |
cf3e56 |
! (int)((text + len) - ptr - mbyte_blen));
|
|
Karsten Hopp |
cf3e56 |
nc1 = pcc[0];
|
|
Karsten Hopp |
cf3e56 |
}
|
|
Karsten Hopp |
cf3e56 |
pc = prev_c;
|
|
Karsten Hopp |
cf3e56 |
*** ../vim-7.2.290/src/version.c 2009-11-11 16:56:13.000000000 +0100
|
|
Karsten Hopp |
cf3e56 |
--- src/version.c 2009-11-11 17:06:48.000000000 +0100
|
|
Karsten Hopp |
cf3e56 |
***************
|
|
Karsten Hopp |
cf3e56 |
*** 683,684 ****
|
|
Karsten Hopp |
cf3e56 |
--- 683,686 ----
|
|
Karsten Hopp |
cf3e56 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
cf3e56 |
+ /**/
|
|
Karsten Hopp |
cf3e56 |
+ 291,
|
|
Karsten Hopp |
cf3e56 |
/**/
|
|
Karsten Hopp |
cf3e56 |
|
|
Karsten Hopp |
cf3e56 |
--
|
|
Karsten Hopp |
cf3e56 |
The problem with political jokes is that they get elected.
|
|
Karsten Hopp |
cf3e56 |
|
|
Karsten Hopp |
cf3e56 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
cf3e56 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
cf3e56 |
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
|
Karsten Hopp |
cf3e56 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|