diff options
| author | Jordan Wiens <jordan@psifertex.com> | 2019-08-07 14:23:11 -0400 |
|---|---|---|
| committer | Jordan Wiens <jordan@psifertex.com> | 2019-08-07 22:46:48 -0400 |
| commit | d085817f4fae2c3f0c4526666f8ebb88b46ce528 (patch) | |
| tree | 97b5b8aa87b9f6b3a32695738d90d4d1def4becd /python | |
| parent | 25cf00a276d9a3da3134601d82654c87bcd9ef9c (diff) | |
fix off-by-one in highest_addrses
Diffstat (limited to 'python')
| -rw-r--r-- | python/function.py | 6 |
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 |
