Skip to content

Commit

Permalink
Intel layer: Fix. This if statement will never be executed unless "mi…
Browse files Browse the repository at this point in the history
…nimum_address > maximum_address" which doesn't make sense to me.
  • Loading branch information
gcmoreira committed May 6, 2024
1 parent 6d22347 commit e5a5b89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion volatility3/framework/layers/intel.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def _translate_entry(self, offset: int) -> Tuple[int, int]:
position = self._initial_position
entry = self._initial_entry

if self.minimum_address > offset > self.maximum_address:
if not (self.minimum_address <= offset <= self.maximum_address):
raise exceptions.PagedInvalidAddressException(
self.name,
offset,
Expand Down

0 comments on commit e5a5b89

Please sign in to comment.