diff --git a/ChangeLog b/ChangeLog index fbce97f1f4..67f928edb8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Mon Mar 24 13:13:36 2014 NARUSE, Yui + + * addr2line.c (parse_debug_line_cu): explicitly specify signed char + because DWARF's line_Base is signed char and char maybe unsigned. + patched by Rei Odaira. [ruby-dev:48068] [Bug #9654] + Sun Mar 23 11:03:50 2014 Kohei Suzuki * vm_method.c (rb_method_entry_get_without_cache): me->klass is 0 diff --git a/addr2line.c b/addr2line.c index cee2640e1e..1dabfac785 100644 --- a/addr2line.c +++ b/addr2line.c @@ -294,7 +294,7 @@ parse_debug_line_cu(int num_traces, void **traces, is_stmt = default_is_stmt = *(unsigned char *)p; p++; - line_base = *(char *)p; + line_base = *(signed char *)p; p++; line_range = *(unsigned char *)p;