Commit graph

968 commits

Author SHA1 Message Date
Chris Hennick
df3dfc1991
Change Rc to Arc since sharing across ZipWriter instances is possible 2023-05-14 10:45:13 -07:00
Chris Hennick
651a87f881
Update CHANGELOG and bump version 2023-05-14 09:47:25 -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
0660141868
Eliminate redundant name field in FileOperation for more efficient fuzzing 2023-05-14 08:31:37 -07:00
Chris Hennick
21ff795071
Additional sanity checks on ZIP64 footer 2023-05-14 08:28:52 -07:00
Chris Hennick
e35a4ee938
Update CHANGELOG 2023-05-13 16:07:35 -07:00
Chris Hennick
f7acf6fe9c
Refactor: simplify FileOperation by factoring out shared fields 2023-05-13 15:58:45 -07:00
Chris Hennick
089f194fd6
Simplify FileOperation by splitting into BasicFileOperation and bool reopen 2023-05-13 15:49:54 -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
bf0ad491c0
Bug fix 2023-05-13 14:02:34 -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
24752c2822
Bump version to 0.7.5 2023-05-12 12:43:24 -07:00
Chris Hennick
9b65b8a523
Bug fix 2023-05-12 09:07:42 -07:00
Chris Hennick
dd83186928
Bug fixes: validation was too stringent 2023-05-12 08:54:00 -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
70db61c26e
Perform sanity checks when both ZIP32 and ZIP64 footers are found 2023-05-12 08:28:30 -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
2e257141e6
Enable js feature (needed for wasm32-unknown-unknown target) 2023-05-11 20:35:44 -07:00
Chris Hennick
609865ba75
Increase read fuzzing 10x since write fuzzing is the bottleneck 2023-05-11 20:35:01 -07:00
Chris Hennick
5cd0b75209
Reformat 2023-05-11 20:17:01 -07:00
Chris Hennick
332d09f51a
Bug fix 2023-05-11 20:14:26 -07:00
Chris Hennick
fba2b971ae
Bug fix: test files were truncated 2023-05-11 20:11:44 -07:00
Chris Hennick
3c44f2812c
Remove unused imports 2023-05-11 19:28:54 -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
ebb4e01329
Slightly stronger assertion 2023-05-11 10:13:09 -07:00
Chris Hennick
06b89f93ea
Fix a failing unit test 2023-05-11 09:59:56 -07:00
Chris Hennick
ad26a3f7f9
Bug fix 2023-05-11 09:39:18 -07:00