Skip to content

Commit b0f8502

Browse files
authored
Bump miniz-oxide version (#354)
1 parent 00052ca commit b0f8502

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ compiler_builtins = { version = '0.1.2', optional = true }
3939
# Optional dependencies enabled through the `gimli-symbolize` feature, do not
4040
# use these features directly.
4141
addr2line = { version = "0.12.0", optional = true, default-features = false }
42-
miniz_oxide = { version = "0.3.7", optional = true }
42+
miniz_oxide = { version = "0.4.0", optional = true, default-features = false }
4343
[dependencies.object]
4444
version = "0.20.0"
4545
optional = true

src/symbolize/gimli/elf.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ use object::elf::{ELFCOMPRESS_ZLIB, SHF_COMPRESSED};
33
use object::read::elf::{CompressionHeader, FileHeader, SectionHeader, SectionTable, Sym};
44
use object::read::StringTable;
55
use object::{BigEndian, Bytes, NativeEndian};
6-
use std::io::Cursor;
76

87
#[cfg(target_pointer_width = "32")]
98
type Elf = object::elf::FileHeader32<NativeEndian>;
@@ -164,7 +163,8 @@ fn decompress_zlib(input: &[u8], output: &mut [u8]) -> Option<()> {
164163
let (status, in_read, out_read) = decompress(
165164
&mut DecompressorOxide::new(),
166165
input,
167-
&mut Cursor::new(output),
166+
output,
167+
0,
168168
TINFL_FLAG_USING_NON_WRAPPING_OUTPUT_BUF | TINFL_FLAG_PARSE_ZLIB_HEADER,
169169
);
170170
if status == TINFLStatus::Done && in_read == input.len() && out_read == output.len() {

0 commit comments

Comments
 (0)