diff --git a/Cargo.lock b/Cargo.lock index 239b74b6..6ebda9ea 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -124,9 +124,9 @@ dependencies = [ [[package]] name = "object" -version = "0.37.1" +version = "0.39.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "03fd943161069e1768b4b3d050890ba48730e590f57e56d4aa04e7e090e61b4a" +checksum = "2e5a6c098c7a3b6547378093f5cc30bc54fd361ce711e05293a5cc589562739b" dependencies = [ "memchr", ] diff --git a/Cargo.toml b/Cargo.toml index 1a32f286..b828cc27 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -48,7 +48,7 @@ addr2line = { version = "0.25.0", default-features = false } libc = { version = "0.2.156", default-features = false } [target.'cfg(not(all(windows, target_env = "msvc", not(target_vendor = "uwp"))))'.dependencies.object] -version = "0.37.0" +version = "0.39.0" default-features = false features = ['read_core', 'elf', 'macho', 'pe', 'xcoff', 'unaligned', 'archive'] diff --git a/crates/as-if-std/Cargo.toml b/crates/as-if-std/Cargo.toml index 2a6bca47..28af5708 100644 --- a/crates/as-if-std/Cargo.toml +++ b/crates/as-if-std/Cargo.toml @@ -22,7 +22,7 @@ ruzstd = { version = "0.8.1", optional = true, default-features = false } addr2line = { version = "0.25.0", optional = true, default-features = false } [target.'cfg(not(all(windows, target_env = "msvc", not(target_vendor = "uwp"))))'.dependencies.object] -version = "0.37.0" +version = "0.39.0" default-features = false optional = true features = ['read_core', 'elf', 'macho', 'pe', 'xcoff', 'unaligned', 'archive'] diff --git a/src/symbolize/gimli/elf.rs b/src/symbolize/gimli/elf.rs index fd9903d1..11fbda7a 100644 --- a/src/symbolize/gimli/elf.rs +++ b/src/symbolize/gimli/elf.rs @@ -268,7 +268,7 @@ impl<'a> Object<'a> { if data.read_bytes(8).ok()?.0 != b"ZLIB\0\0\0\0" { return None; } - let size = usize::try_from(data.read::>().ok()?.get(BigEndian)).ok()?; + let size = usize::try_from(data.read::>().ok()?.get(BigEndian)).ok()?; let buf = stash.allocate(size); decompress_zlib(data.0, buf)?; Some(buf)