Re: Fix for Ruby messing up call stack
- Bjorn Winckler wrote:
> The attached patch fixes a problem where Vim would crash when usingThanks. I'll put it on the todo list.
> 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.
WOMAN: King of the who?
ARTHUR: The Britons.
WOMAN: Who are the Britons?
ARTHUR: Well, we all are. we're all Britons and I am your king.
The Quest for the Holy Grail (Monty Python)
/// Bram Moolenaar -- Bram@... -- 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