From d2b1deda92d1d95dfda169e9a90ab491b13223b0 Mon Sep 17 00:00:00 2001 From: naruse Date: Mon, 24 Mar 2014 04:18:28 +0000 Subject: [PATCH] * 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] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45391 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 6 ++++++ addr2line.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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;