[前][次][番号順一覧][スレッド一覧]

ruby-changes:33312

From: naruse <ko1@a...>
Date: Mon, 24 Mar 2014 13:18:32 +0900 (JST)
Subject: [ruby-changes:33312] naruse:r45391 (trunk): * addr2line.c (parse_debug_line_cu): explicitly specify signed char

naruse	2014-03-24 13:18:28 +0900 (Mon, 24 Mar 2014)

  New Revision: 45391

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=45391

  Log:
    * 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]

  Modified files:
    trunk/ChangeLog
    trunk/addr2line.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 45390)
+++ ChangeLog	(revision 45391)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Mon Mar 24 13:13:36 2014  NARUSE, Yui  <naruse@r...>
+
+	* 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  <eagletmt@g...>
 
 	* vm_method.c (rb_method_entry_get_without_cache): me->klass is 0
Index: addr2line.c
===================================================================
--- addr2line.c	(revision 45390)
+++ addr2line.c	(revision 45391)
@@ -294,7 +294,7 @@ parse_debug_line_cu(int num_traces, void https://github.com/ruby/ruby/blob/trunk/addr2line.c#L294
     is_stmt = default_is_stmt = *(unsigned char *)p;
     p++;
 
-    line_base = *(char *)p;
+    line_base = *(signed char *)p;
     p++;
 
     line_range = *(unsigned char *)p;

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]