|
Karsten Hopp |
1068bb |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
1068bb |
Subject: Patch 7.3.690
|
|
Karsten Hopp |
1068bb |
Fcc: outbox
|
|
Karsten Hopp |
1068bb |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
1068bb |
Mime-Version: 1.0
|
|
Karsten Hopp |
1068bb |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
1068bb |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
1068bb |
------------
|
|
Karsten Hopp |
1068bb |
|
|
Karsten Hopp |
1068bb |
Patch 7.3.690
|
|
Karsten Hopp |
1068bb |
Problem: When the current directory name is exactly the maximum path length
|
|
Karsten Hopp |
1068bb |
Vim may crash.
|
|
Karsten Hopp |
1068bb |
Solution: Only add "/" when there is room. (Danek Duvall)
|
|
Karsten Hopp |
1068bb |
Files: src/os_unix.c
|
|
Karsten Hopp |
1068bb |
|
|
Karsten Hopp |
1068bb |
|
|
Karsten Hopp |
1068bb |
*** ../vim-7.3.689/src/os_unix.c 2012-08-15 17:26:53.000000000 +0200
|
|
Karsten Hopp |
1068bb |
--- src/os_unix.c 2012-10-14 04:28:40.000000000 +0200
|
|
Karsten Hopp |
1068bb |
***************
|
|
Karsten Hopp |
1068bb |
*** 2512,2526 ****
|
|
Karsten Hopp |
1068bb |
}
|
|
Karsten Hopp |
1068bb |
|
|
Karsten Hopp |
1068bb |
l = STRLEN(buf);
|
|
Karsten Hopp |
1068bb |
! if (l >= len)
|
|
Karsten Hopp |
1068bb |
! retval = FAIL;
|
|
Karsten Hopp |
1068bb |
#ifndef VMS
|
|
Karsten Hopp |
1068bb |
! else
|
|
Karsten Hopp |
1068bb |
! {
|
|
Karsten Hopp |
1068bb |
! if (l > 0 && buf[l - 1] != '/' && *fname != NUL
|
|
Karsten Hopp |
1068bb |
&& STRCMP(fname, ".") != 0)
|
|
Karsten Hopp |
1068bb |
! STRCAT(buf, "/");
|
|
Karsten Hopp |
1068bb |
! }
|
|
Karsten Hopp |
1068bb |
#endif
|
|
Karsten Hopp |
1068bb |
}
|
|
Karsten Hopp |
1068bb |
|
|
Karsten Hopp |
1068bb |
--- 2512,2523 ----
|
|
Karsten Hopp |
1068bb |
}
|
|
Karsten Hopp |
1068bb |
|
|
Karsten Hopp |
1068bb |
l = STRLEN(buf);
|
|
Karsten Hopp |
1068bb |
! if (l >= len - 1)
|
|
Karsten Hopp |
1068bb |
! retval = FAIL; /* no space for trailing "/" */
|
|
Karsten Hopp |
1068bb |
#ifndef VMS
|
|
Karsten Hopp |
1068bb |
! else if (l > 0 && buf[l - 1] != '/' && *fname != NUL
|
|
Karsten Hopp |
1068bb |
&& STRCMP(fname, ".") != 0)
|
|
Karsten Hopp |
1068bb |
! STRCAT(buf, "/");
|
|
Karsten Hopp |
1068bb |
#endif
|
|
Karsten Hopp |
1068bb |
}
|
|
Karsten Hopp |
1068bb |
|
|
Karsten Hopp |
1068bb |
*** ../vim-7.3.689/src/version.c 2012-10-14 03:41:54.000000000 +0200
|
|
Karsten Hopp |
1068bb |
--- src/version.c 2012-10-14 04:26:17.000000000 +0200
|
|
Karsten Hopp |
1068bb |
***************
|
|
Karsten Hopp |
1068bb |
*** 721,722 ****
|
|
Karsten Hopp |
1068bb |
--- 721,724 ----
|
|
Karsten Hopp |
1068bb |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
1068bb |
+ /**/
|
|
Karsten Hopp |
1068bb |
+ 690,
|
|
Karsten Hopp |
1068bb |
/**/
|
|
Karsten Hopp |
1068bb |
|
|
Karsten Hopp |
1068bb |
--
|
|
Karsten Hopp |
1068bb |
SOLDIER: What? Ridden on a horse?
|
|
Karsten Hopp |
1068bb |
ARTHUR: Yes!
|
|
Karsten Hopp |
1068bb |
SOLDIER: You're using coconuts!
|
|
Karsten Hopp |
1068bb |
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
|
|
Karsten Hopp |
1068bb |
|
|
Karsten Hopp |
1068bb |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
1068bb |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
1068bb |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
1068bb |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|