[ruby-cvs:72785] shyouhei:r65685 (trunk): vm_insnhelper.c: avoid nevative sp

shyouhei at ruby-lang.org shyouhei at ruby-lang.org
Mon Nov 12 17:14:10 JST 2018


shyouhei	2018-11-12 17:14:09 +0900 (Mon, 12 Nov 2018)

  New Revision: 65685

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65685

  Log:
    vm_insnhelper.c: avoid nevative sp
    
    space_size can be zero here, under the following script.  We would
    better bail out before bptr calculation.
    
    % ./miniruby --dump=i -e '* = nil'
    == disasm: #<ISeq:<main>@-e:1 (1,0)-(1,7)> (catch: FALSE)
    0000 putnil                                                           (   1)[Li]
    0001 dup
    0002 expandarray                  0, 0
    0005 leave

  Modified files:
    trunk/vm_insnhelper.c


More information about the ruby-cvs mailing list