Commit graph

182 commits

Author SHA1 Message Date
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
Chris Hennick
6e7ff280e9
Revert "Perform an extra sanity check on ZIP64 detection"
This reverts commit 475b55df1d.
2023-05-04 20:34:44 -07:00
Chris Hennick
475b55df1d
Perform an extra sanity check on ZIP64 detection 2023-05-04 20:29:26 -07:00
Chris Hennick
44d179355c
Reformat 2023-05-04 16:35:04 -07:00
Chris Hennick
b1ac3912db
Test opening for append and creating another copy 2023-05-04 16:22:19 -07:00
Chris Hennick
6003a2cce5
Bug fix 2023-05-04 12:46:46 -07:00
Chris Hennick
b8d393a628
Bug fix 2023-05-04 12:43:28 -07:00
Chris Hennick
5e0b216320
Bug fix 2023-05-04 12:34:31 -07:00
Chris Hennick
697578b38d
Add assertions for state flags in finish_file 2023-05-04 12:26:10 -07:00
Chris Hennick
ea25dbd954
Bug fix 2023-05-04 12:23:14 -07:00
Chris Hennick
425a05e1c8
Revert "Bug fix"
This reverts commit 6e67bfcda5.
2023-05-04 12:14:30 -07:00
Chris Hennick
6e67bfcda5
Bug fix 2023-05-04 12:13:19 -07:00
Chris Hennick
e2f9d25b1b
Bug fix 2023-05-04 12:07:34 -07:00
Chris Hennick
909473caea
Bug fix 2023-05-04 12:06:23 -07:00
Chris Hennick
31998d90e9
Use unwrap to check that abort_file never fails 2023-05-04 11:45:33 -07:00
Chris Hennick
26bf30fc25
Bug fix: abort file if switch_to fails 2023-05-04 11:12:01 -07:00
Chris Hennick
a41c92d164
Refactor: don't need to be mutable during prepare_next_writer 2023-05-04 10:48:21 -07:00
Chris Hennick
55d82a455c
Refactor: rename prepare_switch_to to prepare_next_writer 2023-05-04 10:47:33 -07:00
Chris Hennick
bb025ef195
Bug fix 2023-05-04 10:46:56 -07:00
Chris Hennick
f165de2269
Update doc comment and CHANGELOG 2023-05-04 10:25:28 -07:00
Chris Hennick
8bc1530b2d
Bug fix 2023-05-04 10:23:55 -07:00
Chris Hennick
304becbda3
Reformat 2023-05-04 10:21:15 -07:00
Chris Hennick
d5e45f3c20
Add abort_file, and call it when validations fail 2023-05-04 10:20:47 -07:00
Chris Hennick
04654fdbe3
Revert large-file test: impractical 2023-05-01 17:06:37 -07:00
Chris Hennick
2f4acd3900
Formatting tweaks 2023-05-01 16:51:55 -07:00
Chris Hennick
28f045e17e
Bug fix 2023-05-01 16:50:36 -07:00
Chris Hennick
de0cbc039e
Add missing doc 2023-05-01 16:47:07 -07:00
Chris Hennick
78139acfae
Prevent WriteLarge from running with no compression 2023-05-01 16:43:38 -07:00
Chris Hennick
9cc6060eb9
Add is_writing_file and update doc 2023-05-01 10:41:24 -07:00
Chris Hennick
ffd1083ff4
Bug fix: remove failed file from files_by_name after writing a large file without large-file option 2023-05-01 10:23:18 -07:00
Chris Hennick
ae6d98dec2
Fix formatting and a Clippy issue 2023-05-01 10:13:53 -07:00
Chris Hennick
43a9db8886
Fix bugs where calling start_file with incorrect parameters would close the ZipWriter 2023-05-01 10:11:07 -07:00
Chris Hennick
90b89b5460
WIP: Write fuzzing 2023-04-29 21:19:31 -07:00
Chris Hennick
db4afdb36c
Cargo fmt 2023-04-29 21:07:33 -07:00
Chris Hennick
cdfe103f94
Bug fix? 2023-04-29 21:05:42 -07:00
Chris Hennick
16af9ae253
Fix Clippy warning and eliminate type alias that no longer simplifies 2023-04-29 20:44:27 -07:00
Chris Hennick
5d9296244c
Add debug_assert! that file end isn't before start 2023-04-29 18:03:11 -07:00
Chris Hennick
6b4a07f2a7
Bug fix: don't switch_to when deep copying 2023-04-29 17:46:48 -07:00
Chris Hennick
6290a028a1
Refactor: store index rather than Rc<RefCell> 2023-04-29 16:39:48 -07:00
Chris Hennick
d26abaa297
Fix Clippy warning 2023-04-29 15:42:26 -07:00
Chris Hennick
f9bd7f8c08
Update CHANGELOG and doc comment 2023-04-29 15:07:40 -07:00
Chris Hennick
db9866719b
Add unit test for duplicate file names 2023-04-29 15:05:53 -07:00
Chris Hennick
eaa2d26ca9
Use HashMap rather than BTreeMap, and check for duplicate file names 2023-04-29 15:01:56 -07:00
Chris Hennick
29b3052e18
Use BTreeMap to look up files by name 2023-04-29 14:05:55 -07:00
Chris Hennick
adaacd90f0
Wrap files in Rc<RefCell<>> 2023-04-29 13:58:17 -07:00
Chris Hennick
8c4ee1f42b
Wrap files in RefCell 2023-04-29 13:47:24 -07:00
Chris Hennick
9a47bbb6c8
Refactor: don't search for src_data twice 2023-04-29 13:19:55 -07:00
Chris Hennick
d5681d9ede
Refactor: don't search for src_data twice 2023-04-29 13:16:14 -07:00
Chris Hennick
7d89194298
Bug fix for permissions on deep-copied files 2023-04-29 12:49:20 -07:00