Skip to content

Commit

Permalink
Merge pull request #379 from mak/fix/get_data
Browse files Browse the repository at this point in the history
fix PE.get_data
  • Loading branch information
erocarrera authored Sep 7, 2023
2 parents 593d094 + 8a2aada commit 46b1531
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pefile.py
Original file line number Diff line number Diff line change
Expand Up @@ -6409,10 +6409,10 @@ def get_data(self, rva=0, length=None):

s = self.get_section_by_rva(rva)

if length:
end = rva + length
else:
if length is None:
end = None
else:
end = rva + length

if not s:
if rva < len(self.header):
Expand Down

0 comments on commit 46b1531

Please sign in to comment.