1. 16 Mar, 2015 1 commit
  2. 05 Mar, 2015 2 commits
  3. 28 Feb, 2015 2 commits
  4. 27 Feb, 2015 3 commits
  5. 26 Feb, 2015 2 commits
  6. 24 Feb, 2015 5 commits
  7. 23 Feb, 2015 2 commits
    • Kouhei Sutou's avatar
      Fix a bug that if and no return value case can't return true clause value · 584d6de3
      Kouhei Sutou authored
      Here is a script that reproduce this problem:
      
           x = if true
                 1
               else
                 case 2
                 when 3
                 end
                 4
               end
           p x # => nil # 1 is expected
      584d6de3
    • Go Saito's avatar
      fix pointer dereference after realloc · 42d23084
      Go Saito authored
      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: default avatarGo Saito <gos@iij.ad.jp>
      42d23084
  8. 19 Feb, 2015 3 commits
  9. 16 Feb, 2015 2 commits
  10. 13 Feb, 2015 3 commits
  11. 12 Feb, 2015 1 commit
  12. 10 Feb, 2015 1 commit
  13. 07 Feb, 2015 1 commit
  14. 06 Feb, 2015 6 commits
  15. 05 Feb, 2015 2 commits
  16. 02 Feb, 2015 3 commits
  17. 31 Jan, 2015 1 commit