summaryrefslogtreecommitdiff
path: root/python/function.py
diff options
context:
space:
mode:
authorJordan Wiens <jordan@psifertex.com>2019-08-07 14:23:11 -0400
committerJordan Wiens <jordan@psifertex.com>2019-08-07 22:46:48 -0400
commitd085817f4fae2c3f0c4526666f8ebb88b46ce528 (patch)
tree97b5b8aa87b9f6b3a32695738d90d4d1def4becd /python/function.py
parent25cf00a276d9a3da3134601d82654c87bcd9ef9c (diff)
fix off-by-one in highest_addrses
Diffstat (limited to 'python/function.py')
-rw-r--r--python/function.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/python/function.py b/python/function.py
index 0bbd0a99..8c4fe265 100644
--- a/python/function.py
+++ b/python/function.py
@@ -855,12 +855,12 @@ class Function(object):
@property
def highest_address(self):
- "The highest virtual address in a function."""
- return max(self, key=lambda block:block.end).end
+ "The highest virtual address contained in a function."""
+ return max(self, key=lambda block:block.end).end - 1
@property
def lowest_address(self):
- """The lowest virtual address in a function."""
+ """The lowest virtual address contained in a function."""
return min(self, key=lambda block:block.start).start
@property