[ruby-cvs:55854] normal:r48704 (trunk): iseq.c: avoid segfault on incomplete iseq

normal at ruby-lang.org normal at ruby-lang.org
Thu Dec 4 07:04:01 JST 2014


normal	2014-12-04 07:03:59 +0900 (Thu, 04 Dec 2014)

  New Revision: 48704

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

  Log:
    iseq.c: avoid segfault on incomplete iseq
    
    Compile failures will trigger iseq_free before
    iseq->callinfo_entries are allocated at all.
    
    * iseq.c (iseq_free): avoid segfault on incomplete iseq
    * test/ruby/test_syntax.rb (test_invalid_next): new test
      for syntax error, not segfault

  Modified files:
    trunk/ChangeLog
    trunk/iseq.c
    trunk/test/ruby/test_syntax.rb


More information about the ruby-cvs mailing list