Skip to content

Commit

Permalink
addr2line.c: DW_LNS_fixed_advance_pc takes a single uhalf operand
Browse files Browse the repository at this point in the history
Fixes [Bug #17609]

Co-Authored-By: xtkoba (Tee KOBAYASHI) <xtkoba+ruby@gmail.com>
  • Loading branch information
mame and xtkoba (Tee KOBAYASHI) committed Feb 4, 2021
1 parent 90f008f commit 7d22060
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion addr2line.c
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,8 @@ parse_debug_line_cu(int num_traces, void **traces, char **debug_line,
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:
Expand Down

0 comments on commit 7d22060

Please sign in to comment.