Skip to content

Commit

Permalink
[minor] rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
daladim committed Aug 4, 2021
1 parent e9c116e commit 3d844a3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/read/pe/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,9 @@ where
// The size declared in the IMAGE_DIRECTORY_ENTRY_IMPORT is ignored by the Windows loader
// Hence, we'll parse the list until a null entry, without restricting the read to this declared size
// (i.e. we're not using `data_dir.data()`)
let mut import_descriptors = self.common.sections
let mut import_descriptors = self
.common
.sections
.pe_data_at(self.data, data_dir.virtual_address.get(LE))
.map(Bytes)
.ok_or(read::Error("Unable to read PE import descriptors"))?;
Expand Down

0 comments on commit 3d844a3

Please sign in to comment.