Skip to content

[nasa/cryptolib#369] Fuzz Testing in Docker #456

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

Open
wants to merge 10 commits into
base: dev
Choose a base branch
from
Open

Conversation

jlucas9
Copy link
Collaborator

@jlucas9 jlucas9 commented Apr 10, 2025

Moved the fuzzing harness provided by @mirkobitetto into the support directory and added a check for VirtualBox shared folders as the hard links required won't function with it.

How to test?

  • Confirm you're in a repository cloned locally in Linux and NOT using shared folders
  • git checkout cryptolib#369-fuzz
  • cd support
  • docker build -t ivvitc/cryptolib:dev .
  • cd ..
  • make clean
  • make debug
  • cd support/fuzz/scripts
  • ./build-fuzz.sh
  • cd ..
  • python3 generate_corpus.py
  • cd scripts
  • ./run-fuzz-multithreaded.sh
  • Manually confirm that fuzzer executing

image

Prior to closing merge:

  • Generate new docker container for use
  • Update workflow to use new container
  • Update env.sh to use new container

@jlucas9 jlucas9 self-assigned this Apr 10, 2025
@codecov-commenter
Copy link

codecov-commenter commented Apr 10, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.71%. Comparing base (d72b9e2) to head (d2a730b).

Additional details and impacted files
@@            Coverage Diff             @@
##              dev     #456      +/-   ##
==========================================
+ Coverage   74.99%   82.71%   +7.71%     
==========================================
  Files          80       39      -41     
  Lines       23341    11762   -11579     
  Branches     1872      942     -930     
==========================================
- Hits        17505     9729    -7776     
+ Misses       5168     1675    -3493     
+ Partials      668      358     -310     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Contributor

@Donnie-Ice Donnie-Ice left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Working on my end! I'd like to try to work with the fuzz harness a bit to be more efficient, but that can be another issue.

@Donnie-Ice Donnie-Ice requested review from dccutrig and removed request for dacarter22 April 10, 2025 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants