[ruby-cvs:70503] yui-knk:r63413 (trunk): compile.c: Fix segfault when VM_INSN_INFO_TABLE_IMPL is not 2

yui-knk at ruby-lang.org yui-knk at ruby-lang.org
Sun May 13 21:31:38 JST 2018


yui-knk	2018-05-13 21:31:38 +0900 (Sun, 13 May 2018)

  New Revision: 63413

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

  Log:
    compile.c: Fix segfault when VM_INSN_INFO_TABLE_IMPL is not 2
    
    * compile.c (ibf_dump_iseq_each): Fix a range of a conditional.
      `positions` is only used when VM_INSN_INFO_TABLE_IMPL is 2.
      And always `dump_body` is expected to be initialized by
      `iseq->body`. For example, `dump_body->insns_info.size` is
      used in `ibf_dump_insns_info_positions`.

  Modified files:
    trunk/compile.c


More information about the ruby-cvs mailing list