summaryrefslogtreecommitdiff
path: root/addr2line.c
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2022-12-22 20:26:32 +0900
committerYusuke Endoh <mame@ruby-lang.org>2022-12-22 20:28:03 +0900
commitebd6b5d826b1a04b20e477f54723aa5c545cbf69 (patch)
treeffa5a17c829f02d3a2df62bd092c41b3d1240927 /addr2line.c
parente61e4ae60b1858254051de1e7e90f47185e31491 (diff)
downloadruby-ebd6b5d826b1a04b20e477f54723aa5c545cbf69.tar.gz
addr2line.c: Fix indexing bug
Diffstat (limited to 'addr2line.c')
-rw-r--r--addr2line.c2
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;