Skip to content

Commit

Permalink
fix bug with fetching registers towards end of segment
Browse files Browse the repository at this point in the history
  • Loading branch information
gaasedelen committed Apr 28, 2021
1 parent 7f97ae8 commit c0ca958
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions plugins/tenet/trace/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -1078,8 +1078,7 @@ def get_reg_info(self, idx, reg_names):
"""
relative_idx = idx - self.base_idx
start_idx = relative_idx + 1

if not (0 <= start_idx < self.length):
if not (0 <= relative_idx < self.length):
return {}

# compute a 32bit mask of the registers we need to find
Expand Down

0 comments on commit c0ca958

Please sign in to comment.