ruby-changes:65140
From: Yusuke <ko1@a...>
Date: Thu, 4 Feb 2021 17:48:22 +0900 (JST)
Subject: [ruby-changes:65140] 7d22060c14 (master): addr2line.c: DW_LNS_fixed_advance_pc takes a single uhalf operand
https://git.ruby-lang.org/ruby.git/commit/?id=7d22060c14 From 7d22060c14895bbca3ff962e5456384095b66738 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh <mame@r...> Date: Thu, 4 Feb 2021 17:45:54 +0900 Subject: addr2line.c: DW_LNS_fixed_advance_pc takes a single uhalf operand Fixes [Bug #17609] Co-Authored-By: xtkoba (Tee KOBAYASHI) <xtkoba+ruby@g...> --- addr2line.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addr2line.c b/addr2line.c index 9669427..2095591 100644 --- a/addr2line.c +++ b/addr2line.c @@ -437,7 +437,8 @@ parse_debug_line_cu(int num_traces, void **traces, char **debug_line, https://github.com/ruby/ruby/blob/trunk/addr2line.c#L437 addr += a; break; case DW_LNS_fixed_advance_pc: - a = *(unsigned char *)p++; + a = *(uint16_t *)p; + p += sizeof(uint16_t); addr += a; break; case DW_LNS_set_prologue_end: -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/