[ruby-cvs:67952] ko1:r60771 (trunk): fix uninitialized memory reference.

ko1 at ruby-lang.org ko1 at ruby-lang.org
Wed Nov 15 13:52:39 JST 2017


ko1	2017-11-15 13:52:39 +0900 (Wed, 15 Nov 2017)

  New Revision: 60771

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

  Log:
    fix uninitialized memory reference.
    
    * compile.c (iseq_set_sequence): clear kwargs (in ci_entries) memory area.
      kwargs ci entries are initialized by compiler. However, sometimes these
      initializations are skipped because corresponding calls are eliminated
      by some optimizations (for example, `if true` syntax elimnates else code).

  Modified files:
    trunk/compile.c
    trunk/test/ruby/test_optimization.rb


More information about the ruby-cvs mailing list