Actions
Bug #11760
closedEncoding is tainted unexpectedly by Marshal.load
    Bug #11760:
    Encoding is tainted unexpectedly by Marshal.load
  
        
           Updated by nobu (Nobuyoshi Nakada) almost 10 years ago
          Updated by nobu (Nobuyoshi Nakada) almost 10 years ago
          
          
        
        
      
      - Status changed from Open to Closed
Applied in changeset r52856.
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.
        
           Updated by usa (Usaku NAKAMURA) almost 10 years ago
          Updated by usa (Usaku NAKAMURA) almost 10 years ago
          
          
        
        
      
      - Backport changed from 2.0.0: REQUIRED, 2.1: REQUIRED, 2.2: REQUIRED to 2.0.0: REQUIRED, 2.1: DONE, 2.2: REQUIRED
ruby_2_1 r52933 merged revision(s) 52856,52906.
        
           Updated by nagachika (Tomoyuki Chikanaga) almost 10 years ago
          Updated by nagachika (Tomoyuki Chikanaga) almost 10 years ago
          
          
        
        
      
      - Backport changed from 2.0.0: REQUIRED, 2.1: DONE, 2.2: REQUIRED to 2.0.0: REQUIRED, 2.1: DONE, 2.2: DONE
Backported into ruby_2_2 branch at r52974.
Actions