Commit graph

738 commits

Author SHA1 Message Date
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
Chris Hennick
3161de632e
Rewrite with new functional-update syntax 2023-05-27 14:06:33 -07:00
Chris Hennick
87291bc429
Add Zopfli 2023-05-27 14:02:14 -07:00
Chris Hennick
255cfaf261
Add flush_on_finish_file parameter 2023-05-26 17:22:53 -07:00
Chris Hennick
bef9fce30a
Bug fix: create a valid archive even when last file was aborted with content 2023-05-21 15:24:00 -07:00
Chris Hennick
468ed36f1b
Reformat 2023-05-21 12:17:20 -07:00
Chris Hennick
710695219f
Bug fix: disable file encryption in abort_file 2023-05-21 12:16:48 -07:00
Chris Hennick
46333b2d61
Fix Clippy warning: rev().next() -> next_back() 2023-05-21 11:39:22 -07:00
Chris Hennick
fa045ad4c5
Bug fix for abort_file when deleting an entry that isn't the last 2023-05-21 11:26:33 -07:00
Chris Hennick
4753b6ecb9
Remove unused import 2023-05-16 20:40:57 -07:00
Chris Hennick
1e4d04552e
Merge changes to aes_ctr 2023-05-16 09:21:41 -07:00
Marli Frost
21a20584bc publish 0.6.6 with aes 0.8 2023-05-16 07:40:54 +01:00
Plecra
4b8f99c238
Merge pull request #354 from zip-rs/aes-bump
update aes to 0.8
2023-05-16 07:38:26 +01:00
Chris Hennick
5d16fa250c
Revert "Wrap extra-data field in an Option, to save Arc overhead when empty"
This reverts commit 1df9186527.
2023-05-15 21:25:34 -07:00
Chris Hennick
1df9186527
Wrap extra-data field in an Option, to save Arc overhead when empty 2023-05-15 20:23:46 -07:00
Chris Hennick
382770a947
Reformat 2023-05-14 18:25:35 -07:00
Chris Hennick
0594f5ef32
Add missing alignment setter 2023-05-14 18:21:29 -07:00
Chris Hennick
2b07fd1e10
Remove unused import 2023-05-14 10:52:23 -07:00
Chris Hennick
df3dfc1991
Change Rc to Arc since sharing across ZipWriter instances is possible 2023-05-14 10:45:13 -07:00
Chris Hennick
170e5c6f58
Refactor: reserve space before adding extra data 2023-05-14 09:26:33 -07:00
Chris Hennick
56f9ee9ab0
Bug fix 2023-05-14 09:25:14 -07:00
Chris Hennick
dbf39339de
Wrap extra data in Rc so FileOptions and ZipFileData can be cloned faster 2023-05-14 09:20:15 -07:00
Chris Hennick
bb49f1c414
Revert "Wrap extra data in Cow so FileOptions can be cloned faster"
This reverts commit 5a477c2b3e.
2023-05-14 08:55:50 -07:00
Chris Hennick
5a477c2b3e
Wrap extra data in Cow so FileOptions can be cloned faster 2023-05-14 08:41:28 -07:00
Chris Hennick
21ff795071
Additional sanity checks on ZIP64 footer 2023-05-14 08:28:52 -07:00
Chris Hennick
ff4dee28d7
Bug fix 2023-05-13 15:38:09 -07:00
Chris Hennick
e89fa95721
Copy most attributes in deep_copy_file, and document the one we can't 2023-05-13 15:06:22 -07:00
Chris Hennick
3c0ccf48ff
Explicitly allow zero loop iterations 2023-05-13 14:55:51 -07:00
Chris Hennick
65535ffc48
Eliminate a magic number 2023-05-13 14:50:39 -07:00
Chris Hennick
bc86898cdd
Strengthen fuzzing: allow very large alignments 2023-05-13 14:47:47 -07:00
Chris Hennick
0ae9dab6ab
Bug fixes 2023-05-13 14:44:46 -07:00
Chris Hennick
ba4d6548ed
Refactor FileOptions generation using arbitrary_loop 2023-05-13 14:40:23 -07:00
Chris Hennick
a2ed77abd3
Bug fixes 2023-05-13 14:29:00 -07:00
Chris Hennick
6e4d60e0ca
Bug fixes for Arbitrary impl 2023-05-13 14:16:58 -07:00
Chris Hennick
c79f734a11
Bug fix 2023-05-13 14:11:43 -07:00
Chris Hennick
15c7958df2
Bug fix 2023-05-13 14:10:34 -07:00
Chris Hennick
e86efb24b0
Refactor: don't need to return Ok if add_extra_data failed 2023-05-13 14:05:32 -07:00
Chris Hennick
d53d2d61b6
Bug fix in Arbitrary impl 2023-05-13 14:04:17 -07:00
Chris Hennick
429b5dfa0b
Reformat 2023-05-13 14:03:02 -07:00
Chris Hennick
4faebb4468
Overhaul extra-data interface 2023-05-13 13:59:14 -07:00
Chris Hennick
92c45cf8dd
WIP: Use ZipExtraDataField 2023-05-13 11:03:35 -07:00
Chris Hennick
80f836a661
Use a struct for extra data 2023-05-13 11:02:08 -07:00
Chris Hennick
9b65b8a523
Bug fix 2023-05-12 09:07:42 -07:00