Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[nss-corpus-update] Collect testcases from gtests #558

Merged
merged 1 commit into from
Nov 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion services/nss-corpus-update/launch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ popd
pushd nss
# Can't use `--disable-tests` here, because we need the tstclnt for the
# handshake collection script
./build.sh -c -v --fuzz
./build.sh -c -v --fuzz --gtests-corpus
popd

# Get list of hosts to collect handshakes
Expand All @@ -68,10 +68,14 @@ shuf -n "${NUM_RAND_HOSTS-5000}" top-1m.csv | awk -F"," '{ print $2 }' > hosts.t
mkdir -p nss-new-corpus
mkdir -p nss-new-corpus-minimized

# Collect handshakes from random domains
python nss/fuzz/config/collect_handshakes.py --nss-build ./dist/Debug \
--hosts ./hosts.txt \
--threads 5 \
--output ./nss-new-corpus
# Collect handshakes from the existing ssl gtests
./nss/mach tests ssl_gtests
cp -r ./tests_results/security/*/ssl_gtests/*-corpus ./nss-new-corpus

# Minimize w/o tls fuzzing mode
for directory in nss-new-corpus/*; do
Expand Down
Loading