On Wednesday, September 19, 2012 12:59:03 PM UTC-5, Danek Duvall wrote:
> On Solaris, at least:
> 
> [snip]
> 
> Looks like this code has been in place since at least vim 7.0 (in fact, the
> 
> code has looked like this since vim 6.0, and prior to that, the behavior here
> 
> was even worse), so it's been in all versions of vim shipped in Solaris.
> 
> [snip]
> 
> And the patch that fixes the problem:
> 
> 
> 
> --- src/os_unix.c       Tue May  1 09:52:21 2012
> 
> +++ src/os_unix.c       Tue May  1 09:52:24 2012
> 
> @@ -2509,7 +2509,7 @@
> 
>         }
> 
>  
> 
>         l = STRLEN(buf);
> 
> -       if (l >= len)
> 
> +       if (l >= len - 1)
> 
>             retval = FAIL;
> 
>  #ifndef VMS
> 
>         else
> 
> 
> 

What version of Vim are you using? There was a long filenames crash fixed 
recently (7.3.648), but for systems other than just Unix:

  
http://code.google.com/p/vim/source/detail?r=76c099d45772a233982c39a29510d89eaa4d5a1c

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui