Files
mruby-mruby/src
Go Saito 42d23084b7 fix pointer dereference after realloc
In src/vm.c: mrb_funcall_with_block
stack_extend may realloc mrb->c->stbase, if argv points on mruby's stack,
then it points invalid address after stack_extend.

e.g. src/class.c: mrb_instance_new

This code:

```ruby
class A
  def initialize(a0,a1,a2,a3,a4)
    a0.is_a? Array
  end
end

def f(a0,a1,a2,a3,a4)
  A.new(a0,a1,a2,a3,a4)
  f(a0,a1,a2,a3,a4)
end

f(0,1,2,3,4)
```

is expected to get exception
```
stack level too deep. (limit=(0x40000 - 128)) (SystemStackError)
```

but get segfault.

Signed-off-by: Go Saito <gos@iij.ad.jp>
2015-02-23 11:25:21 +09:00
..
2012-04-20 09:39:03 +09:00
2014-12-23 21:16:01 +09:00
2013-06-17 04:49:27 +08:00
2015-02-13 09:33:03 +01:00
2013-06-17 04:49:46 +08:00
2015-01-03 23:34:13 +09:00
2015-02-16 14:50:01 +09:00
2014-06-23 20:06:17 +09:00
2013-03-20 23:41:06 +09:00
2013-03-21 07:43:31 +09:00
2014-03-16 07:44:44 +09:00
2015-02-13 09:33:03 +01:00
2014-10-29 01:30:30 +09:00
2014-10-28 01:52:50 +09:00
2014-12-27 10:18:18 +09:00
2015-02-23 11:25:21 +09:00