diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-03-15 22:15:30 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-03-15 22:15:30 +0000 |
commit | 356644685e5f27df9c2dfdacfdff4cb1d7383136 (patch) | |
tree | 909014115bbf85785f94661c6d1e19f97bc385ba /addr2line.c | |
parent | cfab6e0f15d8b005f3a23b0ae7687bea25b1e075 (diff) |
* addr2line.c (fill_lines): return address is just after calling
address. Therefore noreturn function with tail call's return
address may be in another function.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45346 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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 5f6aa92104..801c095bf3 100644 --- a/addr2line.c +++ b/addr2line.c @@ -580,7 +580,7 @@ fill_lines(int num_traces, void **traces, char **syms, int check_debuglink, ElfW(Sym) *sym = &symtab[j]; intptr_t saddr = (intptr_t)sym->st_value + lines[i].base_addr; ptrdiff_t d = (intptr_t)traces[i] - saddr; - if (d < 0 || d > (ptrdiff_t)sym->st_size) continue; + if (d <= 0 || d > (ptrdiff_t)sym->st_size) continue; lines[i].sname = strtab + sym->st_name; lines[i].saddr = saddr; } |