ZyX wrote:
> > Patch 7.3.648
> > Problem: Crash when using a very long file name. (ZyX)
> > Solution: Properly check length of buffer space.
> > Files: src/buffer.c
>
> That actually did not fix the problem: gcc optimized build now behaves
> like non-optimized one, thats all. I still get a crash where I was
> getting it before (aurum, "AuDiff rev1 1 rev2 tip **"). And I still
> observe invalid number of lines (1041 lines with last one truncated).
>
> I don't get invalid number of lines if I replace "expand("<amatch>")"
> with "bufname(+expand("<abuf>"))". Doing the same in aurum does not
> fix the crash. Crash happens at the very end of "fileinfo" function
> from buffer.c. The following patch seems to fix the crash:
And:
> Previous patch missed one length decrement and thus was invalid. There
> was also no need to introduce one new variable, here is the updated
> one. There is still one issue: at the end of :file outputs garbage is
> shown meaning that something is wrong. I currently do not know how to
> fix this or reproduce without using aurum.
So what is the simplest way to reproduce this crash?
--
A computer programmer is a device for turning requirements into
undocumented features. It runs on cola, pizza and Dilbert cartoons.
Bram Moolenaar
/// Bram Moolenaar -- [email protected] -- 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 ///
--
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