Actions
Bug #5647
closedPossible use of uninitialized value in Init_bigdecimal
    Bug #5647:
    Possible use of uninitialized value in Init_bigdecimal
  
Description
I see the following call chain in bigdecimal.c
Init_bigdecimal -> VpInit -> VpAlloc -> VpGetPrecLimit -> rb_thread_local_aref with id_BigDecimal_precision_limit
The call to VpInit occurs before the call to set the value of id_BigDecimal_precision_limit in Init_bigdecimal.
So it appears that a thread local is set with the key of an uninitialized C value, if I'm following correctly.
Thanks,
Brian
        
           Updated by mrkn (Kenta Murata) over 13 years ago
          Updated by mrkn (Kenta Murata) over 13 years ago
          
          
        
        
      
      - Assignee set to mrkn (Kenta Murata)
        
           Updated by shyouhei (Shyouhei Urabe) over 13 years ago
          Updated by shyouhei (Shyouhei Urabe) over 13 years ago
          
          
        
        
      
      - Status changed from Open to Assigned
        
           Updated by mrkn (Kenta Murata) over 13 years ago
          Updated by mrkn (Kenta Murata) over 13 years ago
          
          
        
        
      
      - Status changed from Assigned to Closed
This is fixed by r35555
Actions