Commit graph

230 commits

Author SHA1 Message Date
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
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
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
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
c90a8fd3cf
Reformat 2023-05-12 08:40:06 -07:00
Chris Hennick
7bc245d7aa
Restore old write test cases 2023-05-12 08:38:12 -07:00
Chris Hennick
546693a6c7
Test allowing ZIP64 magic with the sanity checks 2023-05-12 08:36:33 -07:00
Chris Hennick
5a11cbeaee
Bug fix 2023-05-11 21:02:51 -07:00
Chris Hennick
93a5be27ff
Bug fix 2023-05-11 20:49:42 -07:00
Chris Hennick
bf867c5012
Bug fix: skip invalid filenames during write fuzz 2023-05-11 19:25:32 -07:00
Chris Hennick
dc351196e2
Bug fix: don't allow writing files with certain ZIP64 magic strings in their names 2023-05-11 18:52:41 -07:00
Chris Hennick
2ad4c20681
Reformat and fix Clippy warning 2023-05-11 09:35:12 -07:00
Chris Hennick
8c6816fb33
Bug fixes: file can't be ZIP64 if CDR start is after CDR end 2023-05-11 09:33:06 -07:00
Chris Hennick
ab302b20b7
Reformat 2023-05-10 13:04:54 -07:00
Chris Hennick
7c39dbd4c2
Bug fix 2023-05-10 13:01:01 -07:00
Chris Hennick
82cd28af3c
Reformat 2023-05-10 12:55:20 -07:00
Chris Hennick
9efec6b61f
Fix merge 2023-05-10 12:53:30 -07:00
Chris Hennick
5bb40012d2
WIP: Fix upstream merge 2023-05-08 19:37:55 -07:00
Chris Hennick
89989e02a3
Reformat 2023-05-08 18:54:35 -07:00
Chris Hennick
67bfe53d65
Merge upstream version 0.6.5 2023-05-08 18:54:10 -07:00
Marli Frost
2eeb47ce56 add support for writing files with PKWARE encryption 2023-05-06 15:48:52 +01:00