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

[pull] master from Frommi:master #2

Open
wants to merge 122 commits into
base: master
Choose a base branch
from
Open

Conversation

pull[bot]
Copy link

@pull pull bot commented Jan 31, 2020

See Commits and Changes for more details.


Created by pull[bot]

Can you help keep this open source service alive? 💖 Please sponsor : )

@pull pull bot added the ⤵️ pull label Jan 31, 2020
@pull pull bot added the merge-conflict Resolve conflicts manually label Feb 19, 2020
oyvindln and others added 23 commits March 1, 2020 21:59
Fixed bug causing an infinite loop when compress_to_vec was called with empty or 1-length input.

Closes #75
Fixed bug causing an infinite loop when compress_to_vec was called with empty or 1-length input.

Closes #75
Attempt to fix overflow panic when calling compress with a >4GB large slice. (#74)
Add changelog using clog

fixes #71
* Flag `miniz_oxide` as a `#![no_std]` library

This commit conversion the `miniz_oxide` crate to a `#![no_std]`
library, and is as a result a breaking change for the library. Currently
the only dependency on the `std` crate is the `std::io::Cursor` type,
which is pretty easily replaced with a `usize` parameter in a few
locations.

The goal of this commit is to eventually enable this library to be
included into the standard library itself. Dependencies of the standard
library can't depend on the standard library as well! The reason for
including this in the standard library is that the `backtrace` crate
wants to decompress DWARF information in executables, which can be
compressed with zlib.

* Update with annotations to build in libstd
* Add support for limiting output size when decompressing to Vec

* Document the new functions
* Introduce reset policy to control InflateState::reset

* Update comments per request
* feat: automatic `alloc` detection

* fix: leave the feature in for compatibility
chore: Fix travis link in readme
* Increase the license options.

* Rename license to be the MIT license

* Add text of the new licenses.

* remove the appendix.

* Move the changes to just the intended crate.
oyvindln and others added 27 commits February 2, 2023 16:29
"it's" with an apostrophe is a contraction of "it is" or "it has", and "its" without an apostrophe is the possessive form of "it". It should be "on its own" since the intended meaning is not "on it is own".
* Move misplaced doccomment

* Avoid slice_start_index_len_fail

* Make init_tree fallible

* Add bounds checks to init_tree

This eliminates costlier implicit panicking bounds checks

* Reduce panics in compress_to_vec_inner
* Add throughput to benches

* Trim debug/error fmt

* Amortize bounds checks in apply_match fast path

* Avoid panic in tree_lookup
…Finish in line with orig miniz and zlib

also fixes some clippy warnings and adds a test for it

Closes #143
…ith --no-default-features) and make add test run of it to ci
The crate requires simd-adler32 in version 0.3.3 at a minimum, as that
is when the simd_adler32::Adler32::from_checksum constructor was
introduced. Fix the version specification accordingly.

Signed-off-by: Daniel Müller <[email protected]>
I am implementing Seek for a wrapper that reads deflated files.  To do this, I will
inflate the file once and save the dictionary and inflate state at several points in
the file.  Later, when I want to seek to some random place in the file, I will use the
cloned state+dict to position to a known file position and then inflate until I reach
the data I need.

To support this, I need to be able to Clone the InflateState and its parts (the current
dictionary).  Derive Clone for InflateState, HuffmanTable and DecompressorOxide.
… bits for tiny space/perf saving and fix clippy warnings
…ut reading and change some data types for performance
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⤵️ pull merge-conflict Resolve conflicts manually
Projects
None yet
Development

Successfully merging this pull request may close these issues.