Project

General

Profile

Actions

Bug #5647

closed

Possible use of uninitialized value in Init_bigdecimal

Added by brixen (Brian Shirai) over 12 years ago. Updated almost 12 years ago.

Status:
Closed
Target version:
-
ruby -v:
ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-darwin10.8.0]
Backport:
[ruby-core:41133]

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


Related issues 1 (0 open1 closed)

Has duplicate Ruby master - Bug #6406: Ruby crashes with Segmentation faultClosed05/06/2012Actions

Updated by mrkn (Kenta Murata) about 12 years ago

  • Assignee set to mrkn (Kenta Murata)
Actions #2

Updated by shyouhei (Shyouhei Urabe) about 12 years ago

  • Status changed from Open to Assigned

Updated by mrkn (Kenta Murata) almost 12 years ago

  • Status changed from Assigned to Closed

This is fixed by r35555

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0