diff options
author | Roland McGrath <roland@redhat.com> | 2008-08-26 07:20:29 +0000 |
---|---|---|
committer | Roland McGrath <roland@redhat.com> | 2008-08-26 07:20:29 +0000 |
commit | 122f388b300a489b54829d80f5e5fffb3f743ab7 (patch) | |
tree | e07f0734362c179a27ee7c6906b1148ebf6e6b86 /libdwfl/segment.c | |
parent | 513ebdc3212d923e5513dbc1fc222eaae808ecae (diff) | |
download | elfutils-122f388b300a489b54829d80f5e5fffb3f743ab7.tar.gz |
propagate from branch 'com.redhat.elfutils.pmachata.threads' (head 6db56f08d1ba946c22c9bcfaec0ddeb6532e1dcc)
to branch 'com.redhat.elfutils.roland.pending' (head d0bf16e5588ef191b1541ac0d07d841c1cf52fc9)
Diffstat (limited to 'libdwfl/segment.c')
-rw-r--r-- | libdwfl/segment.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libdwfl/segment.c b/libdwfl/segment.c index 3c1f8bc6..78220e3b 100644 --- a/libdwfl/segment.c +++ b/libdwfl/segment.c @@ -176,8 +176,8 @@ reify_segments (Dwfl *dwfl) ++idx; } - if ((size_t) idx + 1 < dwfl->lookup_elts - && end < dwfl->lookup_addr[idx + 1] + if (((size_t) idx + 1 == dwfl->lookup_elts + || end < dwfl->lookup_addr[idx + 1]) /* The module ends in the middle of this segment. Split it. */ && unlikely (insert (dwfl, idx + 1, end, dwfl->lookup_addr[idx + 1], -1))) |