From 6b1e3b4fa2069ab7a00b78e07585fed6b23f1c64 Mon Sep 17 00:00:00 2001 From: Miles Granger Date: Wed, 20 Mar 2024 12:44:28 +0100 Subject: [PATCH] Fix segfault in blosc2 --- Cargo.lock | 8 ++++---- libcramjam/Cargo.toml | 2 +- libcramjam/src/lib.rs | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 097c0a39..7f7a4139 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -147,9 +147,9 @@ checksum = "ed570934406eb16438a4e976b1b4500774099c13b8cb96eec99f620f05090ddf" [[package]] name = "blosc2-rs" -version = "0.2.0+2.13.2" +version = "0.2.2+2.13.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "644e1ad20be5e35ccb82d9e0f369b93a7ff5805f56295928b1f5ca22f79a402f" +checksum = "d2a080cb27e0beb76be89302b4039b790a2b074cc65195f8882f19c0e167fa9d" dependencies = [ "blosc2-sys", "parking_lot", @@ -157,9 +157,9 @@ dependencies = [ [[package]] name = "blosc2-sys" -version = "0.2.0+2.13.2" +version = "0.2.2+2.13.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5e41d32cfc718da08fcd6e101fc1681feba8f1d95981f6c136d4255992ac98d3" +checksum = "f006a7d93f9b11b8bc36c51063eaf229dae35f33a3bd34b76aea9533ec092b4c" dependencies = [ "bindgen", "cmake", diff --git a/libcramjam/Cargo.toml b/libcramjam/Cargo.toml index 19fd9f90..0722e0b0 100644 --- a/libcramjam/Cargo.toml +++ b/libcramjam/Cargo.toml @@ -18,7 +18,7 @@ brotli = { version = "^3", default-features = false, features = ["std", "ffi-api bzip2 = "^0.4" lz4 = "^1" flate2 = "^1" -blosc2-rs = "0.2.1+2.13.2" +blosc2-rs = { version = "0.2.2+2.13.2" } libdeflater = "^1" zstd = "0.13.0" libc = { version = "0.2", optional = true } diff --git a/libcramjam/src/lib.rs b/libcramjam/src/lib.rs index 59435c65..2bee1986 100644 --- a/libcramjam/src/lib.rs +++ b/libcramjam/src/lib.rs @@ -83,7 +83,7 @@ mod tests { test_variant!(deflate, compressed_len = 157174, None); test_variant!(zstd, compressed_len = 4990, None); test_variant!(lz4, compressed_len = 303278, None); - test_variant!(blosc2, compressed_len = 2_403_572); + test_variant!(blosc2, compressed_len = 791_923); #[allow(non_upper_case_globals)] const format: Option = None;