[ruby-cvs:71003] ko1:r63912 (trunk): Don't copy FL_USER* on Kernel#clone. [Bug #14847]

ko1 at ruby-lang.org ko1 at ruby-lang.org
Mon Jul 9 17:07:26 JST 2018


ko1	2018-07-09 17:07:26 +0900 (Mon, 09 Jul 2018)

  New Revision: 63912

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

  Log:
    Don't copy FL_USER* on Kernel#clone. [Bug #14847]
    
    * object.c (mutable_obj_clone): `Kernel#clone` should not copy
      FL_USER* flags because they are copied unexpectedly.
      Unexpected copy will break internal data consistency.

  Modified files:
    trunk/object.c
    trunk/test/ruby/test_clone.rb


More information about the ruby-cvs mailing list