Commit graph

729 commits

Author SHA1 Message Date
Chris Hennick
cae144b2c0
style: fix unused-variable warning for test
Signed-off-by: Chris Hennick <4961925+Pr0methean@users.noreply.github.com>
2024-04-29 13:33:53 -07:00
Chris Hennick
42972297f1
fix: Rare bug where find_and_parse would give up prematurely on detecting a false end-of-CDR header 2024-04-29 13:18:17 -07:00
Chris Hennick
135cc54ba8
Merge branch 'master' into issue-280-2 2024-04-28 10:59:58 -07:00
Chris Hennick
e48d4ef1d1
revert: refactor!: remove deflate-miniz feature since it's now equivalent to deflate (#35)"
Reverts: 16633213
2024-04-28 10:43:52 -07:00
awakening
4078bd34cd
fix: Decrypt the read bytes in ZipCrypto instead of entire buffer
Fixes `corrupt deflate stream` panic when extracting a file from encrypted archive (zip-rs/zip#280).
2024-04-27 23:41:32 +07:00
Chris Hennick
1663321323
refactor!: remove deflate-miniz feature since it's now equivalent to deflate (#35) 2024-04-24 00:21:04 -07:00
Chris Hennick
231e154fae
style: fix a conditionally-unused import 2024-04-23 13:12:29 -07:00
Chris Hennick
f81a5b9149
test: new test requires one of the deflate features 2024-04-23 12:13:41 -07:00
Chris Hennick
00378bc6f2
fix: Alignment was previously handled incorrectly (#33) 2024-04-23 12:07:30 -07:00
Chris Hennick
c3d9123abf
test: unit test to reproduce #33 2024-04-23 11:42:32 -07:00
Chris Hennick
46ff80d294
test: verify that we can read a file with a data descriptor 2024-04-23 11:09:06 -07:00
Chris Hennick
ffa7772cc3
style: cargo fmt --all 2024-04-22 19:56:46 -07:00
Chris Hennick
64b738a81e
chore(release): revert method deletions from c9cb506bc9 2024-04-22 19:46:32 -07:00
Chris Hennick
c9cb506bc9
Update docs, remove some deprecated methods, and substitute crate version into docstring 2024-04-22 17:23:44 -07:00
Chris Hennick
124ebfdb02
Fix Clippy warnings 2024-04-20 15:14:28 -07:00
Chris Hennick
cdc2e7aa23
Add shallow_copy_file_from_path,deep_copy_file_from_path and raw_copy_file_to_path, and use PathBuf in fuzz_write 2024-04-20 14:38:54 -07:00
Chris Hennick
0087dab984
Update documentation and annotations 2024-04-20 14:13:41 -07:00
Chris Hennick
e412d8b6df
Restore support for Path and fix handling of ".." 2024-04-20 14:05:11 -07:00
Chris Hennick
81e44d1d41
Refactor: replace contains_file_named with index_for_name 2024-04-20 12:31:00 -07:00
Chris Hennick
c22afbf3c7
cargo fmt --all 2024-04-20 12:00:01 -07:00
Chris Hennick
16b66841b3
Add contains_file_named 2024-04-20 11:58:18 -07:00
Chris Hennick
174825229c
Change crate name to "zip" per https://github.com/zip-rs/zip/issues/446#issuecomment-2063837388 2024-04-19 18:50:27 -07:00
Wyatt Herkamp
61afe4dad9
Added ExtendedFileOptions 2024-04-15 16:32:07 -04:00
Chris Hennick
d23f036955 Bug fix 2024-04-14 08:47:35 -07:00
Chris Hennick
c4f91c2895 cargo fmt --all 2024-04-14 08:12:07 -07:00
Chris Hennick
72fde539cd Bump version number to 1.1 due to MSRV bump 2024-04-14 08:03:06 -07:00
Chris Hennick
9438bef0f7 Replace AtomicU64 with OnceLock 2024-04-14 07:53:32 -07:00
Chris Hennick
4f3f2d1fca Bug fix: LZMA state is large, so put it in a Box 2024-04-11 13:28:37 -07:00
Chris Hennick
812498e788 Bug fix: conditionally unused import 2024-04-11 13:18:22 -07:00
Chris Hennick
b7fe3f6e4f Add tests and update fuzzing dictionary/corpus for LZMA 2024-04-11 13:14:34 -07:00
Chris Hennick
7f8311efea Add support for decompressing LZMA 2024-04-11 13:03:57 -07:00
Chris Hennick
9d3f307a42 Bump version to 1.0.1 2024-04-09 13:00:23 -07:00
Chris Hennick
52559af930 Fix cargo fmt 2024-04-08 12:11:49 -07:00
Chris Hennick
161bd87724 Refactor to use boxed slices instead of Vec where possible 2024-04-08 12:09:23 -07:00
Chris Hennick
cdfd36a1cc Fix another Clippy warning 2024-04-08 11:02:11 -07:00
Chris Hennick
3c35357b2e Bump version to 1.0.0 2024-04-08 10:53:47 -07:00
Chris Hennick
804fb27309 Fix Clippy warning 2024-04-08 10:47:35 -07:00
Chris Hennick
db69d25828 Bug fix 2024-04-08 10:45:22 -07:00
Chris Hennick
384afcda2a Switch from String to Box<str> for metadata 2024-04-08 10:29:17 -07:00
Chris Hennick
8d3b72ab60 Update version number in doc comment 2024-03-13 13:34:30 -07:00
Chris Hennick
dec73ef5c1 Merge branch 'tune_fuzz'
# Conflicts:
#	src/read.rs
2024-03-13 13:09:14 -07:00
Chris Hennick
ece098d393 Make InvalidPassword a kind of ZipError 2024-03-13 13:05:54 -07:00
Chris Hennick
6d8de51bea Bug fix: expected error result now happens sooner 2024-03-11 13:32:58 -07:00
Chris Hennick
6338242154 Bug fix: dir_end was being set incorrectly 2024-03-07 15:23:56 -08:00
Chris Hennick
5e03f43f9a Fix failing tests other than deflate64 bug 25 2024-03-07 15:16:04 -08:00
Chris Hennick
e23ba853d3 Remove comment field from Shared to avoid unnecessary copying 2024-03-07 14:43:40 -08:00
Chris Hennick
8efd2339cf Overhaul read logic to perform *all* validations before accepting a central directory as the real one 2024-03-07 14:34:40 -08:00
Chris Hennick
be49def529 Replace hard-coded byte array with data file 2024-03-06 12:34:51 -08:00
Chris Hennick
ce11179be3 Add test case for https://github.com/anatawa12/deflate64-rs/issues/25 2024-03-04 17:35:12 -08:00
Chris Hennick
c1afa95706 Refactor: use a zip file with valid metadata 2024-03-03 18:01:31 -08:00