diff options
author | Yusuke Endoh <[email protected]> | 2022-12-22 20:26:32 +0900 |
---|---|---|
committer | Yusuke Endoh <[email protected]> | 2022-12-22 20:28:03 +0900 |
commit | ebd6b5d826b1a04b20e477f54723aa5c545cbf69 (patch) | |
tree | ffa5a17c829f02d3a2df62bd092c41b3d1240927 /addr2line.c | |
parent | e61e4ae60b1858254051de1e7e90f47185e31491 (diff) |
addr2line.c: Fix indexing bug
Diffstat (limited to 'addr2line.c')
-rw-r--r-- | addr2line.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addr2line.c b/addr2line.c index 7c3728f476..3645fa11b1 100644 --- a/addr2line.c +++ b/addr2line.c @@ -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; |