Commit graph

282 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
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
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
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
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
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
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
7f8311efea Add support for decompressing LZMA 2024-04-11 13:03:57 -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
384afcda2a Switch from String to Box<str> for metadata 2024-04-08 10:29:17 -07: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
c48b5a558b cargo fmt 2024-02-28 16:28:41 -08:00
Chris Hennick
007918a81f Update dependencies and allow for 64-bit Zopfli compression levels 2024-02-28 16:27:03 -08:00
Chris Hennick
da21bbe45f Remove redundant imports 2024-02-28 16:03:44 -08:00
Chris Hennick
bcc5a91988 Fix clippy error 2024-02-28 15:29:29 -08:00
anatawa12
d6fcd355b8
fix: cargo clippy error 2023-10-13 21:49:41 +09:00
anatawa12
4812d77e5b
Merge remote-tracking branch 'zip-next/master' into deflate64-next 2023-10-13 19:58:44 +09:00
anatawa12
065058d30d
feat: support deflate64 compression with deflate64 crate 2023-08-04 21:52:08 +09:00
Chris Hennick
3cb826fe8b
Make functions const where possible 2023-06-07 22:15:06 -07:00
Chris Hennick
7b23b3212a
Update doc comment about compression_method 2023-06-01 12:56:11 -07:00
Chris Hennick
12eae587e1
Remove unused import 2023-05-30 18:21:48 -07:00
Chris Hennick
2407ef95c6
Fixes and refactors for no-features build 2023-05-30 18:17:59 -07:00
Chris Hennick
9ec0ddc5ca
Add zlib-ng 2023-05-30 09:18:26 -07:00
Chris Hennick
d9c20c55c4
Limit Zopfli iterations in write fuzzing 2023-05-28 10:11:51 -07:00
Chris Hennick
26eeabe488
Reformat 2023-05-27 17:39:14 -07:00
Chris Hennick
dd9ea0689a
Bug fix 2023-05-27 17:36:31 -07:00
Chris Hennick
6ec619d78a
Bug fix 2023-05-27 17:30:50 -07:00
Chris Hennick
fd081c9f8c
Bug fix for fuzzing with deflate-zopfli disabled 2023-05-27 17:06:37 -07:00
Chris Hennick
d2e2b54625
Reformat 2023-05-27 17:05:49 -07:00
Chris Hennick
f46a0055ad
Bug fixes and refactors for Arbitrary impl 2023-05-27 17:04:27 -07:00
Chris Hennick
3414e0d6fb
Bug fix 2023-05-27 16:59:07 -07:00
Chris Hennick
744068b117
Reformat 2023-05-27 16:56:23 -07:00
Chris Hennick
7e6472c761
Refactor: fuzz with a compression level that matches the method or is just past the edge 2023-05-27 16:55:21 -07:00
Chris Hennick
543f469277
Refactor: zopfli_buffer_size doesn't matter when not using Zopfli 2023-05-27 16:47:44 -07:00
Chris Hennick
ed922b060a
Reformat 2023-05-27 15:45:17 -07:00
Chris Hennick
130ca38cf6
Implement adjustable buffer size for Zopfli 2023-05-27 15:44:43 -07:00
Chris Hennick
8f49b0bb58
Fix Clippy warning and formatting 2023-05-27 14:47:36 -07:00
Chris Hennick
8804a46cab
Fix unnecessary path qualification 2023-05-27 14:45:01 -07:00
Chris Hennick
b3988b2aec
Refactor: short-circuit empty writes 2023-05-27 14:42:23 -07:00