From d085817f4fae2c3f0c4526666f8ebb88b46ce528 Mon Sep 17 00:00:00 2001 From: Jordan Wiens Date: Wed, 7 Aug 2019 14:23:11 -0400 Subject: fix off-by-one in highest_addrses --- python/function.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'python/function.py') 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 -- cgit v1.3.1