Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 0.36.5 #733

Merged
merged 4 commits into from
Oct 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,25 @@

--------------------------------------------------------------------------------

## 0.36.5

Released 2024/10/04.

### Added

* Added `Architecture::E2K32` and `Architecture::E2K64`.
[#727](https://github.com/gimli-rs/object/pull/727)

* Added read and write support for `pe::IMAGE_REL_ARM64_BRANCH26`.
[#731](https://github.com/gimli-rs/object/pull/731)

### Changed

* Fixed decompression of multi-frame Zstandard data in `read::CompressedData::decompress`.
[#730](https://github.com/gimli-rs/object/pull/730)

--------------------------------------------------------------------------------

## 0.36.4

Released 2024/08/30.
Expand Down
140 changes: 30 additions & 110 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "object"
version = "0.36.4"
version = "0.36.5"
edition = "2018"
keywords = ["object", "elf", "mach-o", "pe", "coff"]
license = "Apache-2.0 OR MIT"
Expand All @@ -24,9 +24,9 @@ features = ['doc']
crc32fast = { version = "1.2", default-features = false, optional = true }
flate2 = { version = "1", optional = true }
indexmap = { version = "2.0", default-features = false, optional = true }
wasmparser = { version = "0.216.0", default-features = false, optional = true }
wasmparser = { version = "0.218.0", default-features = false, optional = true }
memchr = { version = "2.4.1", default-features = false }
hashbrown = { version = "0.14.0", features = ["ahash"], default-features = false, optional = true }
hashbrown = { version = "0.15.0", features = ["default-hasher"], default-features = false, optional = true }
ruzstd = { version = "0.7.0", optional = true }

# Internal feature, only used when building as part of libstd, not part of the
Expand Down
4 changes: 2 additions & 2 deletions crates/rewrite/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -249,9 +249,9 @@ fn main() -> Result<()> {
let mut buf = io::BufReader::new(file);
let mut line = Vec::new();
while buf.read_until(b'\n', &mut line)? != 0 {
if line.ends_with(&[b'\n']) {
if line.ends_with(b"\n") {
line.pop();
if line.ends_with(&[b'\r']) {
if line.ends_with(b"\r") {
line.pop();
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/read/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1006,7 +1006,7 @@ impl<'data> CompressedData<'data> {
},
),
) => {
input = &input
input = input
.get(length as usize..)
.read_error("Invalid zstd compressed data")?;
continue;
Expand Down
6 changes: 1 addition & 5 deletions src/read/wasm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -325,11 +325,7 @@ impl<'data, R: ReadRef<'data>> WasmFile<'data, R> {
range.start = range.end - size;
file.add_section(SectionId::Custom, range, name);
if name == "name" {
let reader = wp::BinaryReader::new(
section.data(),
section.data_offset(),
wp::WasmFeatures::all(),
);
let reader = wp::BinaryReader::new(section.data(), section.data_offset());
for name in wp::NameSectionReader::new(reader) {
// TODO: Right now, ill-formed name subsections
// are silently ignored in order to maintain
Expand Down
2 changes: 1 addition & 1 deletion src/write/string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use alloc::vec::Vec;
#[cfg(feature = "write_std")]
type IndexSet<K> = indexmap::IndexSet<K>;
#[cfg(not(feature = "write_std"))]
type IndexSet<K> = indexmap::IndexSet<K, hashbrown::hash_map::DefaultHashBuilder>;
type IndexSet<K> = indexmap::IndexSet<K, hashbrown::DefaultHashBuilder>;

/// An identifier for an entry in a string table.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
Expand Down
2 changes: 0 additions & 2 deletions xtask/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,15 +185,13 @@ fn cmd_cross() -> Result<(), DynError> {
}

fn cmd_msrv() -> Result<(), DynError> {
cargo(&["update", "-p", "ahash", "--precise", "0.8.7"])?;
cmd_with(
"cargo",
&["+1.65.0", "test", "-p", "object", "--no-default-features", "--features", "read,write,build,std"],
|cmd| {
cmd.env("CARGO_NET_GIT_FETCH_WITH_CLI", "true");
},
)?;
cargo(&["update", "-p", "ahash"])?;
// wasmparser needs 1.76.0 and ruzstd needs 1.73
cmd_with(
"cargo",
Expand Down
Loading