Hi, The attached patch fixes a problem where Vim would crash when using the Ruby interpreter on Mac OS X 10.7.
The problem is that a call to alloca(size) with len=0 on 10.7 generates bad code which causes the call stack to be messed up. This patch fixes the problem by checking the size before allocating with alloca(). I was tempted to get rid of the alloca() call all together and use malloc/free instead, but I left that out of the patch. I did not make the patch Mac-specific (even though I've only heard of this problem occurring on Mac OS X 10.7) as I think it is a bad idea to try and allocate 0 bytes in the first place so all platforms are covered by the patch. Björn -- 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
0001-Fix-for-Ruby-messing-up-call-stack-on-Mac-OS-X-10.7.patch
Description: Binary data
