|
|
22c937 |
To: vim_dev@googlegroups.com
|
|
|
22c937 |
Subject: Patch 7.4.465
|
|
|
22c937 |
Fcc: outbox
|
|
|
22c937 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
|
22c937 |
Mime-Version: 1.0
|
|
|
22c937 |
Content-Type: text/plain; charset=UTF-8
|
|
|
22c937 |
Content-Transfer-Encoding: 8bit
|
|
|
22c937 |
------------
|
|
|
22c937 |
|
|
|
22c937 |
Patch 7.4.465 (after 7.4.016)
|
|
|
22c937 |
Problem: Crash when expanding a very long string.
|
|
|
22c937 |
Solution: Use wsncpy() instead of wcscpy(). (Ken Takata)
|
|
|
22c937 |
Files: src/os_win32.c
|
|
|
22c937 |
|
|
|
22c937 |
|
|
|
22c937 |
*** ../vim-7.4.464/src/os_win32.c 2014-09-23 21:53:35.310849352 +0200
|
|
|
22c937 |
--- src/os_win32.c 2014-10-06 18:37:27.437277105 +0200
|
|
|
22c937 |
***************
|
|
|
22c937 |
*** 2775,2783 ****
|
|
|
22c937 |
if (p != NULL)
|
|
|
22c937 |
{
|
|
|
22c937 |
char_u *q;
|
|
|
22c937 |
! WCHAR buf[_MAX_PATH + 2];
|
|
|
22c937 |
|
|
|
22c937 |
! wcscpy(buf, p);
|
|
|
22c937 |
vim_free(p);
|
|
|
22c937 |
|
|
|
22c937 |
if (fname_casew(buf, (len > 0) ? _MAX_PATH : 0) == OK)
|
|
|
22c937 |
--- 2775,2784 ----
|
|
|
22c937 |
if (p != NULL)
|
|
|
22c937 |
{
|
|
|
22c937 |
char_u *q;
|
|
|
22c937 |
! WCHAR buf[_MAX_PATH + 1];
|
|
|
22c937 |
|
|
|
22c937 |
! wcsncpy(buf, p, _MAX_PATH);
|
|
|
22c937 |
! buf[_MAX_PATH] = L'\0';
|
|
|
22c937 |
vim_free(p);
|
|
|
22c937 |
|
|
|
22c937 |
if (fname_casew(buf, (len > 0) ? _MAX_PATH : 0) == OK)
|
|
|
22c937 |
*** ../vim-7.4.464/src/version.c 2014-10-06 18:10:04.521273516 +0200
|
|
|
22c937 |
--- src/version.c 2014-10-06 18:40:47.361277541 +0200
|
|
|
22c937 |
***************
|
|
|
22c937 |
*** 743,744 ****
|
|
|
22c937 |
--- 743,746 ----
|
|
|
22c937 |
{ /* Add new patch number below this line */
|
|
|
22c937 |
+ /**/
|
|
|
22c937 |
+ 465,
|
|
|
22c937 |
/**/
|
|
|
22c937 |
|
|
|
22c937 |
--
|
|
|
22c937 |
Get a life? What is the URL where it can be downloaded?
|
|
|
22c937 |
|
|
|
22c937 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
|
22c937 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
|
22c937 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
|
22c937 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|