Commit graph

524 commits

Author SHA1 Message Date
Chris Hennick
c969cd644a
Bug fix: treat Unsupported as not deprecated in fuzzing config 2023-05-01 10:26: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
188433e7e9
Bug fix for deprecation suppression 2023-05-01 10:18:03 -07:00
Chris Hennick
1543b64f30
Fix a deprecation warning 2023-05-01 10:15:19 -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
Chris Hennick
a86f87ff6f
Remove unused imports 2023-04-25 16:34:03 -07:00
Chris Hennick
aabdec98aa
Reformat 2023-04-25 15:06:33 -07:00
Chris Hennick
b7f4bd6faf
Minor refactor 2023-04-25 15:06:11 -07:00
Chris Hennick
36e7b19969
Add deep-copy method, and include copying in end-to-end tests 2023-04-24 10:44:36 -07:00
Chris Hennick
406abacd2c
Fix formatting 2023-04-23 16:03:21 -07:00
Chris Hennick
491c512d6c
Update AES library (API has changed) 2023-04-23 16:00:27 -07:00
Chris Hennick
3b3b63cef5
Fix a flaky test 2023-04-23 15:14:44 -07:00
Chris Hennick
6dc099d128
Fix more formatting issues 2023-04-23 15:12:56 -07:00
Chris Hennick
9330bdb7b7
Don't need Read for shallow copy 2023-04-23 15:09:22 -07:00
Chris Hennick
85689cd2e6
Remove unused #![feature(read_buf)] 2023-04-23 15:05:53 -07:00
Chris Hennick
d3400509bc
Fix formatting issues from cargo fmt 2023-04-23 14:58:10 -07:00
Chris Hennick
7e7483ef5c
Remove unnecessary package qualifiers 2023-04-23 14:52:14 -07:00
Chris Hennick
360a7de003
Fix clippy warning: use write_all instead of write 2023-04-23 14:51:17 -07:00
Chris Hennick
cde5d5ed11
Implement shallow copy from within the file being written 2023-04-23 14:33:10 -07:00
Kyle Bloom
1aa3710aff Remove redundant tests 2023-02-02 08:56:19 +00:00
Marli Frost
c4c6ec9e7c fix: clippy 2023-02-01 18:03:03 +00:00
Marli Frost
d06d4b295f refactor: move the new ZipStreamReader API to the unstable module 2023-02-01 17:55:07 +00:00
Marli Frost
1eb491e96e fix: clippy lint 2023-02-01 17:39:10 +00:00
Jiahao XU
e322842bfd Fix clippy warning in stream.rs:85
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-02-01 17:33:35 +00:00
Jiahao XU
f97f017d99 Rm read::stream::test::zip_contents
As streaming mode cannot calculate central_header_start.

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-02-01 17:33:35 +00:00
Jiahao XU
89ff32d93b Rm infesible guarantee in ZipStreamVisitor::visit_additional_metadata
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-02-01 17:33:35 +00:00
Jiahao XU
ef1846e121 Rm stream::tests::zip64_with_leading_junk
As in streaming mode, there is no way to ignore the leading junk.

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-02-01 17:33:35 +00:00
Jiahao XU
b944bee72d Add unit tests for mod read::streams
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-02-01 17:33:35 +00:00
Jiahao XU
c6fe396b56 Impl ZipStreamFileMetadata::is_{dir, file}
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-02-01 17:33:35 +00:00
Jiahao XU
d858994e1e Add guarantee for ZipStreamVisitor::visit_additional_metadata
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-02-01 17:33:35 +00:00
Jiahao XU
8f7c43c227 Rm unnecessary p.exist() check in ZipStreamReader::extract
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-02-01 17:33:35 +00:00
Jiahao XU
5b6d9557c6 Impl ZipStreamReader::extract
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-02-01 17:33:35 +00:00