ZyX <[email protected]> wrote: > среда, 19 сентября 2012 г., 22:50:06 UTC+4 пользователь Danek Duvall написал: >> And 7.3.648 doesn't fix this problem, anyway (just rebuilt without my patch >> and checked). > It neither does fix the problem I observed, see > discussion. I believe with your patch and without my patch > (https://groups.google.com/d/msg/vim_dev/xae_VJRCp6E/RIIfT1PcU7MJ, > see cdiff-full.diff) vim should crash as well at the time it runs ":file", it > just > seems that most of time there is no critical data just after the allocated > segment so it is not crashing.
Ending the the string with \0 should be enough and faster than initializing the whole allocated block. It's allows finding errors if Vim is somehow using memory after \0 as Valgrind will then complain about uninitialised memory access. -- Dominique -- 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
