mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
addr2line.c: Fix indexing bug
This commit is contained in:
parent
e61e4ae60b
commit
ebd6b5d826
1 changed files with 1 additions and 1 deletions
|
@ -1794,7 +1794,7 @@ parse_ver5_debug_line_header(const char *p, int idx, uint8_t format, obj_info_t
|
|||
if (dw_lnct == 2 /* DW_LNCT_directory_index */ && v.type == VAL_uint && out_directory_index)
|
||||
*out_directory_index = v.as.uint64;
|
||||
}
|
||||
if (i == idx) return 0;
|
||||
if (j == idx) return 0;
|
||||
}
|
||||
|
||||
return reader.p;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue