Skip to content

Commit

Permalink
Bump miniz-oxide version (#354)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton authored Jun 29, 2020
1 parent 00052ca commit b0f8502
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ compiler_builtins = { version = '0.1.2', optional = true }
# Optional dependencies enabled through the `gimli-symbolize` feature, do not
# use these features directly.
addr2line = { version = "0.12.0", optional = true, default-features = false }
miniz_oxide = { version = "0.3.7", optional = true }
miniz_oxide = { version = "0.4.0", optional = true, default-features = false }
[dependencies.object]
version = "0.20.0"
optional = true
Expand Down
4 changes: 2 additions & 2 deletions src/symbolize/gimli/elf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ use object::elf::{ELFCOMPRESS_ZLIB, SHF_COMPRESSED};
use object::read::elf::{CompressionHeader, FileHeader, SectionHeader, SectionTable, Sym};
use object::read::StringTable;
use object::{BigEndian, Bytes, NativeEndian};
use std::io::Cursor;

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

0 comments on commit b0f8502

Please sign in to comment.