[ruby-cvs:70559] yui-knk:r63468 (trunk): iseq.c: Fix segfault when debug is not 0

yui-knk at ruby-lang.org yui-knk at ruby-lang.org
Sat May 19 12:43:00 JST 2018


yui-knk	2018-05-19 12:43:00 +0900 (Sat, 19 May 2018)

  New Revision: 63468

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

  Log:
    iseq.c: Fix segfault when debug is not 0
    
    * iseq.c (get_insn_info_succinct_bitvector): If
      VM_CHECK_MODE is 0, `body->insns_info.positions` is
      freed in `rb_iseq_insns_info_encode_positions`.
      Print `position` only when VM_CHECK_MODE is set.

  Modified files:
    trunk/iseq.c


More information about the ruby-cvs mailing list