summaryrefslogtreecommitdiff
path: root/elfutils/libdw/fde.c
diff options
context:
space:
mode:
Diffstat (limited to 'elfutils/libdw/fde.c')
-rw-r--r--elfutils/libdw/fde.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/elfutils/libdw/fde.c b/elfutils/libdw/fde.c
index f38eed7e..c826114c 100644
--- a/elfutils/libdw/fde.c
+++ b/elfutils/libdw/fde.c
@@ -115,7 +115,7 @@ intern_fde (Dwarf_CFI *cache, const Dwarf_FDE *entry)
before its actual instruction stream. */
Dwarf_Word len;
get_uleb128 (len, fde->instructions);
- if ((Dwarf_Word) (fde->instructions_end < fde->instructions) < len)
+ if ((Dwarf_Word) (fde->instructions_end - fde->instructions) < len)
{
free (fde);
__libdw_seterrno (DWARF_E_INVALID_DWARF);