core, bin: bump goblin to v0.9

closes #209
This commit is contained in:
Willi Ballenthin 2024-11-01 13:06:14 +00:00
parent a6c972f869
commit 1ad4e45a2a
3 changed files with 3 additions and 3 deletions

View file

@ -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" }

View file

@ -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"

View file

@ -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,
})),