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