-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8,340 changed files
with
3,301 additions
and
882 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "zip" | ||
version = "2.1.0" | ||
version = "2.1.3" | ||
authors = [ | ||
"Mathijs van de Nes <[email protected]>", | ||
"Marli Frost <[email protected]>", | ||
|
@@ -30,34 +30,34 @@ aes = { version = "0.8.4", optional = true } | |
bzip2 = { version = "0.4.4", optional = true } | ||
chrono = { version = "0.4.38", optional = true } | ||
constant_time_eq = { version = "0.3.0", optional = true } | ||
crc32fast = "1.4.0" | ||
crc32fast = "1.4.2" | ||
displaydoc = { version = "0.2.4", default-features = false } | ||
flate2 = { version = "1.0.28", default-features = false, optional = true } | ||
flate2 = { version = "1.0.30", default-features = false, optional = true } | ||
indexmap = "2" | ||
hmac = { version = "0.12.1", optional = true, features = ["reset"] } | ||
memchr = "2.7.2" | ||
pbkdf2 = { version = "0.12.2", optional = true } | ||
rand = { version = "0.8.5", optional = true } | ||
sha1 = { version = "0.10.6", optional = true } | ||
thiserror = "1.0.48" | ||
thiserror = "1.0.61" | ||
time = { workspace = true, optional = true, features = [ | ||
"std", | ||
] } | ||
zeroize = { version = "1.6.0", optional = true, features = ["zeroize_derive"] } | ||
zeroize = { version = "1.8.1", optional = true, features = ["zeroize_derive"] } | ||
zstd = { version = "0.13.1", optional = true, default-features = false } | ||
zopfli = { version = "0.8.1", optional = true } | ||
deflate64 = { version = "0.1.8", optional = true } | ||
lzma-rs = { version = "0.3.0", default-features = false, optional = true } | ||
|
||
[target.'cfg(any(all(target_arch = "arm", target_pointer_width = "32"), target_arch = "mips", target_arch = "powerpc"))'.dependencies] | ||
crossbeam-utils = "0.8.19" | ||
crossbeam-utils = "0.8.20" | ||
|
||
[target.'cfg(fuzzing)'.dependencies] | ||
arbitrary = { version = "1.3.2", features = ["derive"] } | ||
|
||
[dev-dependencies] | ||
bencher = "0.1.5" | ||
getrandom = { version = "0.2.14", features = ["js", "std"] } | ||
getrandom = { version = "0.2.15", features = ["js", "std"] } | ||
walkdir = "2.5.0" | ||
time = { workspace = true, features = ["formatting", "macros"] } | ||
anyhow = "1" | ||
|
@@ -78,6 +78,7 @@ deflate-zlib-ng = ["flate2/zlib-ng", "deflate-flate2"] | |
deflate-zopfli = ["zopfli", "_deflate-any"] | ||
lzma = ["lzma-rs/stream"] | ||
unreserved = [] | ||
xz = ["lzma-rs/raw_decoder"] | ||
default = [ | ||
"aes-crypto", | ||
"bzip2", | ||
|
@@ -86,6 +87,7 @@ default = [ | |
"lzma", | ||
"time", | ||
"zstd", | ||
"xz", | ||
] | ||
|
||
[[bench]] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
set -euxo pipefail | ||
ncpus=$(nproc || getconf NPROCESSORS_ONLN) | ||
ncpus=$(( ncpus / ( 1 + $(cat /sys/devices/system/cpu/smt/active)))) | ||
RESTARTS=10 | ||
mv "fuzz/corpus/fuzz_$1" "fuzz/corpus/fuzz_$1_pre_fresh_blood" || true | ||
for i in $(seq 1 $RESTARTS); do | ||
echo "RESTART ${i}" | ||
mkdir "fuzz/corpus/fuzz_$1" | ||
cargo fuzz run --all-features "fuzz_$1" "fuzz/corpus/fuzz_$1" -- \ | ||
-dict=fuzz/fuzz.dict -max_len="$2" -fork="$ncpus" \ | ||
-max_total_time=5100 -runs=100000000 | ||
mv "fuzz/corpus/fuzz_$1" "fuzz/corpus/fuzz_$1_restart_${i}" | ||
done | ||
mkdir "fuzz/corpus/fuzz_$1" | ||
for i in $(seq 1 $RESTARTS); do | ||
mv "fuzz/corpus/fuzz_$1_restart_${i}"/* "fuzz/corpus/fuzz_$1" | ||
rmdir "fuzz/corpus/fuzz_$1_restart_${i}" | ||
done | ||
./fuzz-until-converged.sh $1 $2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
set -euxo pipefail | ||
rm -r "fuzz/corpus/fuzz_$1_old" || true | ||
ncpus=$(nproc || getconf NPROCESSORS_ONLN) | ||
ncpus=$(( ncpus / ( 1 + $(cat /sys/devices/system/cpu/smt/active)))) | ||
MAX_ITERS_WITHOUT_IMPROVEMENT=3 | ||
iters_without_improvement=0 | ||
while [[ $iters_without_improvement -lt $MAX_ITERS_WITHOUT_IMPROVEMENT ]]; do | ||
cp -r "fuzz/corpus/fuzz_$1" "fuzz/corpus/fuzz_$1_old" | ||
cargo fuzz run --all-features "fuzz_$1" "fuzz/corpus/fuzz_$1" -- \ | ||
-dict=fuzz/fuzz.dict -max_len="$2" -fork="$ncpus" \ | ||
-max_total_time=1800 -runs=20000000 -rss_limit_mb=8192 -timeout=30 | ||
./recursive-fuzz-cmin.sh "$1" "$2" | ||
if diff "fuzz/corpus/fuzz_$1" "fuzz/corpus/fuzz_$1_old"; then | ||
iters_without_improvement=$(( iters_without_improvement + 1 )) | ||
echo "$iters_without_improvement iterations without improvement" | ||
else | ||
iters_without_improvement=0 | ||
fi | ||
rm -r "fuzz/corpus/fuzz_$1_old" | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
target | ||
artifacts | ||
corpus/* | ||
!corpus/fuzz_read/ | ||
!corpus/fuzz_write/ |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File renamed without changes.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File renamed without changes.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File renamed without changes.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.