Commit graph

1165 commits

Author SHA1 Message Date
Chris Hennick
3e82e21614 Test using 4-byte & 6-byte strings of \xFF and \x00 2024-03-04 11:43:07 -08:00
Chris Hennick
0331aed531 Test using \xFF\xFF as dictionary entry but no other experimentally-discovered strings 2024-03-04 11:21:30 -08:00
Chris Hennick
577b00c120 Test using only even-length dictionary entries 2024-03-04 11:13:16 -08:00
Chris Hennick
05da2def6e Bug fix: can't use octal literals in dictionary 2024-03-04 11:06:10 -08:00
Chris Hennick
c10679ba1c Bug fix: can't mix octal with hex escapes? 2024-03-04 10:59:53 -08:00
Chris Hennick
3fbfe8406e Revert "Test with no experimentally-discovered strings in fuzz.dict"
This reverts commit be428e93b3.
2024-03-04 10:58:39 -08:00
Chris Hennick
5409596748 Revert "Test without "PK" and "KP" in fuzz.dict"
This reverts commit 6ba7fc9fd1.
2024-03-04 10:58:38 -08:00
Chris Hennick
6ddcb8f53c Test with attainable maximum lengths 2024-03-03 19:57:53 -08:00
Chris Hennick
0ec4b49970 Bug fix: include CompressionMethod::Stored 2024-03-03 19:52:41 -08:00
Chris Hennick
6ba7fc9fd1 Test without "PK" and "KP" in fuzz.dict 2024-03-03 19:51:18 -08:00
Chris Hennick
be428e93b3 Test with no experimentally-discovered strings in fuzz.dict 2024-03-03 19:50:27 -08:00
Chris Hennick
c38494b93c Shorten fuzz_read to prevent timeouts given the added complexity of deflate64 2024-03-03 19:43:06 -08:00
Chris Hennick
151e9362fe Add more experimentally-discovered strings to dictionary 2024-03-03 19:32:25 -08:00
Chris Hennick
f17bc48d70 Fix artifact name collision 2024-03-03 18:37:12 -08:00
Chris Hennick
f52de5c242 Improve fuzzing dictionary to include all valid compression methods and all header signatures 2024-03-03 18:36:38 -08:00
Chris Hennick
dc62999f85 Bug fix: include data file for new test 2024-03-03 18:03:07 -08:00
Chris Hennick
c1afa95706 Refactor: use a zip file with valid metadata 2024-03-03 18:01:31 -08:00
Chris Hennick
f4d5ad7b49 Bug fix: can't run new test if deflate64 is disabled 2024-03-03 18:00:05 -08:00
Chris Hennick
80876aa7e4 Bug fix: incorrect assertion for new test 2024-03-03 17:36:58 -08:00
Chris Hennick
fe3821c4c0 Add test case to reproduce deflate64 error 2024-03-03 17:29:27 -08:00
Chris Hennick
38a903b5cd Fuzz against https://github.com/anatawa12/deflate64-rs/pull/24 2024-03-03 17:28:15 -08:00
Chris Hennick
6636a6c3f3 Enable manual CI runs 2024-02-29 15:52:09 -08:00
Chris Hennick
01671c4a80 Bug fix 2024-02-29 13:23:42 -08:00
Chris Hennick
7491fc86e8 Bug fix 2024-02-29 12:46:17 -08:00
Chris Hennick
779c9d38fc Bug fix 2024-02-29 12:45:49 -08:00
Chris Hennick
5f6546dde3 Timeout fuzz runs after 5h30m to ensure there's time to upload artifacts 2024-02-29 12:41:49 -08:00
Chris Hennick
3f3d78c9ee Bug fix: remove size check since metadata may be wrong 2024-02-29 12:33:40 -08:00
Chris Hennick
e843e67b9f Bug fix: reduce runs to 10k in CI fuzz_write 2024-02-29 10:31:53 -08:00
Chris Hennick
806c5d9fd8 Bug fix: replace max with min 2024-02-29 10:29:52 -08:00
Chris Hennick
ee1ef05fe6 Bug fix: weaken a failing assertion 2024-02-28 20:54:39 -08:00
Chris Hennick
ff1106a8f9 Share fuzz dictionary between fuzz_read and fuzz_write 2024-02-28 20:17:29 -08:00
Chris Hennick
4187dbc0e2 Improve fuzz_read coverage with predefined dictionary 2024-02-28 20:09:41 -08:00
Chris Hennick
60a921d4d4 Increase timeout for fuzzing (improves branch coverage) 2024-02-28 18:41:53 -08:00
Chris Hennick
c4f657281d Bug fix: read timeout should be same with and without default features 2024-02-28 17:44:04 -08:00
Chris Hennick
207e595785 Enable fuzz_read with no default features 2024-02-28 17:43:30 -08:00
Chris Hennick
9113cb6b07 Bug fix: allow invalid compressed files, but verify length if decompression succeeds 2024-02-28 17:28:17 -08:00
Chris Hennick
026a49ffa7 Truncate huge files during read fuzz rather than skipping them 2024-02-28 17:22:43 -08:00
Chris Hennick
e787187cdd Allow files up to 1<<24 bytes in read fuzzing 2024-02-28 17:13:05 -08:00
Chris Hennick
c0f22ec444
Merge pull request #19 from zip-rs/master
in-source vulnerability tracking
2024-02-28 16:57:20 -08:00
Chris Hennick
dfd781a9b3 Update CHANGELOG 2024-02-28 16:54:47 -08:00
Chris Hennick
9324b28e71 Enable DEFLATE64 by default and bump version to 0.10.4 2024-02-28 16:49:30 -08:00
Chris Hennick
11b6f01c75 cargo fmt: remove trailing space 2024-02-28 16:40:43 -08:00
Chris Hennick
3a6eecfa19 #[allow(unknown_lints)] 2024-02-28 16:36:52 -08:00
Chris Hennick
c48b5a558b cargo fmt 2024-02-28 16:28:41 -08:00
Chris Hennick
007918a81f Update dependencies and allow for 64-bit Zopfli compression levels 2024-02-28 16:27:03 -08:00
Chris Hennick
da21bbe45f Remove redundant imports 2024-02-28 16:03:44 -08:00
Chris Hennick
8e33631c31 Bug fix: disable non-nightly toolchains for fuzz for now 2024-02-28 15:58:32 -08:00
Chris Hennick
d36233a7db Enable stable/MSRV builds for fuzz 2024-02-28 15:54:17 -08:00
Chris Hennick
0a2e351999 Bump MSRV to 1.67.0 2024-02-28 15:50:08 -08:00
Chris Hennick
bcc5a91988 Fix clippy error 2024-02-28 15:29:29 -08:00