Commit graph

417 commits

Author SHA1 Message Date
Chris Hennick
348611f62b
test: Fix a bug 2024-06-13 23:54:01 -07:00
Chris Hennick
ce323636de
test: Fix a build error with --no-default-features 2024-06-13 23:48:23 -07:00
Chris Hennick
16f619d9f2
chore: Partial debug 2024-06-13 23:44:37 -07:00
Chris Hennick
6b93d358d5
chore: Fix more errors when parsing multiple extra fields 2024-06-13 23:11:32 -07:00
Chris Hennick
32f946e788
chore: Fix an error caused by not allowing 0xa11e field 2024-06-13 22:59:02 -07:00
Chris Hennick
60f7c637e6
test: Fix more build errors in no-default-features build 2024-06-13 22:46:05 -07:00
Chris Hennick
0ad79e9ab3
test: Fix a build error when unreserved was disabled 2024-06-13 22:43:48 -07:00
Chris Hennick
9e12b6db0c
chore: Bug fix: crypto_header was being counted toward extra_data_end 2024-06-13 22:41:47 -07:00
Chris Hennick
7f641d23a3
chore: Bug fix: revert a change where crypto_header was incorrectly treated as an extra field 2024-06-13 22:29:22 -07:00
Chris Hennick
bf3e7510a6
chore: Fix a bug where a modulo of 0 was used 2024-06-13 22:22:56 -07:00
Chris Hennick
3436a569ab
style: cargo fmt --all 2024-06-13 22:20:58 -07:00
Chris Hennick
aa896ce992
chore: Fix a bug when ZipCrypto, alignment *and* a custom header are used 2024-06-13 22:19:18 -07:00
Chris Hennick
7b2e31ca7f
chore: Fix a bug when both ZipCrypto and alignment are used 2024-06-13 21:43:21 -07:00
Chris Hennick
0d9fd0da0b
chore: Fix another bug: header_end vs extra_data_end 2024-06-13 21:39:09 -07:00
Chris Hennick
0f0ef1dd96
chore: Fix use of a stale value in a debug_assert_eq! 2024-06-13 21:35:55 -07:00
Chris Hennick
40d2da84f7
test: Fix a type mismatch in implementation of Arbitrary 2024-06-13 21:32:43 -07:00
Chris Hennick
19e5af8406
fix: Fix a bug where alignment padding interacts with other extra-data fields 2024-06-13 21:29:17 -07:00
Chris Hennick
88b4ae30b4
fix: Fix bugs involving alignment padding and Unicode extra fields 2024-06-13 20:52:45 -07:00
Chris Hennick
1e118199f7
fix: Incorrect header when adding AES-encrypted files 2024-06-13 19:24:54 -07:00
Chris Hennick
0bd2fe11d7
fix: Parse the extra field and reject it if invalid 2024-06-13 17:48:54 -07:00
Chris Hennick
a06fbaca08
style: Fix unused import 2024-06-13 13:55:38 -07:00
Chris Hennick
77e718864d
fix: Incorrect behavior following a rare combination of merge_archive, abort_file and deep_copy_file. As well, we now return an error when a file is being copied to itself. 2024-06-13 13:49:27 -07:00
Chris Hennick
5aadcb758a
style: Remove unneeded 'static 2024-06-12 21:50:25 -07:00
Chris Hennick
6366d45949
fix: Implement Debug for ZipWriter even when it's not implemented for the inner writer's type 2024-06-11 20:12:13 -07:00
Chris Hennick
cf19487a55
chore: Fix: may still get an incorrect size if opening an invalid file for append 2024-06-08 15:23:27 -07:00
Chris Hennick
894e0ad44c
fix: Fix an issue where the central directory could be incorrectly detected 2024-06-08 15:10:08 -07:00
Chris Hennick
f3bb677511
fix: finish_into_readable() would corrupt the archive if the central directory had moved 2024-06-08 14:27:53 -07:00
Chris Hennick
df9c71700e
ci(fuzz): Fine-tune some Debug implementations 2024-06-08 13:51:31 -07:00
Chris Hennick
e052842d78
style: cargo fmt --all 2024-06-04 08:58:17 -07:00
Chris Hennick
b4970dd80f
test: Delete a unit test that's no longer needed 2024-06-04 08:55:33 -07:00
Chris Hennick
362a1123b5
ci(fuzz): Limit Zopfli buffer size to fix OOMEs 2024-06-04 08:38:05 -07:00
Chris Hennick
b7bec1c2dd
fix: Some date/time filters were previously unreliable (i.e. later-pass filters had no earliest-pass or latest-fail, and vice-versa) 2024-06-03 22:35:40 -07:00
Chris Hennick
cb50ca1213
test: Bug fix? Explicitly type int that may become as large as 3 << 29 2024-06-03 21:12:54 -07:00
Chris Hennick
c06f49b153
ci(fuzz): Fix: T::arbitrary returns Result 2024-06-03 20:43:49 -07:00
Chris Hennick
c0cc03c0e7
style: cargo fmt --all 2024-06-03 20:25:36 -07:00
Chris Hennick
ad218a6c9c
ci(fuzz): Allow zopfli_buffer_size to be 3 * power of 2 2024-06-03 20:23:46 -07:00
Chris Hennick
eacc320fe0
chore: Add check for wrong-length blocks, and incorporate fixed-size requirement into the trait name 2024-06-02 21:48:21 -07:00
Chris Hennick
28fb992532
chore: Refactor alignment field write logic 2024-06-02 17:37:45 -07:00
Chris Hennick
2a131e67a9
fix: Use deflate-flate2 flag to guard import 2024-06-02 17:29:49 -07:00
Chris Hennick
79fc5a9cdd
chore: Fix a build error 2024-06-02 17:06:10 -07:00
Chris Hennick
8e92cc4d81
chore: Fix a build error 2024-06-02 17:03:32 -07:00
Chris Hennick
888e5fac16
fix: Switch padding field ID to one documented in APPNOTE 2024-06-02 16:09:19 -07:00
Alex Franchuk
a8875b0226
feat: Allow the archive offset behavior of the reader to be configured.
Aside from supporting the current behavior which allows archives to be
preceded by arbitrary data (added in fc749a09), this also allows
detection of the offset to use by checking whether a central directory
header is at the expected location. This is configurable because if the
behavior were based only on detection, there could be false positives if
archive data happened to contain a central directory header at the right
spot.
2024-05-29 13:59:20 -04:00
Chris Hennick
bf7c8d21fb
style: cargo fmt --all 2024-05-27 17:20:46 -07:00
Chris Hennick
0c7b0080f3
chore: Bug fixes for debug implementation 2024-05-27 17:18:31 -07:00
Chris Hennick
8d81cbc2c3
chore: Bug fixes for debug implementation 2024-05-27 17:11:24 -07:00
Chris Hennick
48b1adb64b
fix: Derive Debug for ZipWriter 2024-05-27 16:58:12 -07:00
Chris Hennick
fdb01c3dd2
style: cargo fmt --all 2024-05-25 15:10:31 -07:00
Chris Hennick
eb949ebdef
chore: Update unit tests 2024-05-25 15:05:02 -07:00
Chris Hennick
15f8bac454
chore: Remove unused import 2024-05-25 14:51:18 -07:00