[ruby-cvs:60009] nobu:r52856 (trunk): encoding.c: defer finding encoding

nobu at ruby-lang.org nobu at ruby-lang.org
Wed Dec 2 16:27:25 JST 2015


nobu	2015-12-02 16:27:22 +0900 (Wed, 02 Dec 2015)

  New Revision: 52856

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

  Log:
    encoding.c: defer finding encoding
    
    * encoding.c (enc_m_loader): defer finding encoding object not to
      be infected by marshal source.  [ruby-core:71793] [Bug #11760]
    * marshal.c (r_object0): enable compatible loader on USERDEF
      class.  the loader function is called with the class itself,
      instead of an allocated object, and the loaded data.
    * marshal.c (compat_allocator_table): intialize
      compat_allocator_tbl on demand.
    * object.c (rb_undefined_alloc): extract from rb_obj_alloc.

  Modified files:
    trunk/ChangeLog
    trunk/encoding.c
    trunk/internal.h
    trunk/marshal.c
    trunk/object.c
    trunk/test/ruby/test_encoding.rb


More information about the ruby-cvs mailing list