Skip to content

Commit

Permalink
core, bin: bump goblin to v0.9
Browse files Browse the repository at this point in the history
closes #209
  • Loading branch information
williballenthin committed Nov 1, 2024
1 parent a6c972f commit 1ad4e45
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bin/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ chrono = "0.4"
anyhow = "1"
thiserror = "1"
better-panic = "0.3"
goblin = "0.6"
goblin = "0.9"
# unreleased fixes for: https://github.com/mdsteele/rust-ar/issues/26
# otherwise just use 0.9 or next release.
ar = { git = "https://github.com/mdsteele/rust-ar", rev = "03d664b", version = "0.9" }
Expand Down
2 changes: 1 addition & 1 deletion core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ travis-ci = { repository = "https://github.com/williballenthin/lancelot", branch

[dependencies]
log = "0.4"
goblin = { version = "0.6", features = ["std", "pe32"], default-features = false }
goblin = { version = "0.9", features = ["std", "pe32"], default-features = false }
object = "0.36"
zydis = { features = ["wasm", "serialization"], optional = true, version = "3.1.3" }
byteorder = "1"
Expand Down
2 changes: 1 addition & 1 deletion core/src/loader/pe/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ impl PE {
};

match opt_header.data_directories.data_directories[data_directory] {
Some(directory) => Ok(Some(DataDirectory {
Some((_, directory)) => Ok(Some(DataDirectory {
address: self.module.address_space.base_address + directory.virtual_address as VA,
size: directory.size as RVA,
})),
Expand Down

0 comments on commit 1ad4e45

Please sign in to comment.