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

Setup fuzzing with nikic/PHP-Fuzzer #6

Merged
merged 7 commits into from
Jan 17, 2024
Merged

Setup fuzzing with nikic/PHP-Fuzzer #6

merged 7 commits into from
Jan 17, 2024

Conversation

n-peugnet
Copy link
Member

@n-peugnet n-peugnet commented Jan 13, 2024

  • tests: initial setup of fuzzer with nikic/PHP-Fuzzer

    The initial corpus is created with the unit tests data as recomended

  • tests: run fuzzer + limit by default to 1000000 runs

  • chore: drop php7.3 from supported version

    As nikic/PHP-Fuzzer does not support versions under PHP7.4. Another way
    would be not to install it via composer, but for now it is easier.

  • chore: add copyright notice to fuzz test

  • chore: add a changelog entries (add fuzzer + remove 7.3)

Copy link

codecov bot commented Jan 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (50386d7) 100.00% compared to head (b4661f8) 100.00%.

❗ Current head b4661f8 differs from pull request most recent head ec0fa0b. Consider uploading reports for the commit ec0fa0b to get more accurate results

Additional details and impacted files
@@             Coverage Diff             @@
##                main        #6   +/-   ##
===========================================
  Coverage     100.00%   100.00%           
  Complexity        36        36           
===========================================
  Files              4         4           
  Lines             98        98           
===========================================
  Hits              98        98           

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

@n-peugnet n-peugnet force-pushed the fuzzing branch 2 times, most recently from 097ca9e to 365c723 Compare January 13, 2024 19:18
The initial corpus is created with the unit tests data as recomended
As nikic/PHP-Fuzzer does not support versions under PHP7.4. Another way
would be not to install it via composer, but for now it is easier.
@n-peugnet n-peugnet force-pushed the fuzzing branch 2 times, most recently from 59dbff3 to 96ee01e Compare January 13, 2024 19:39
Instead generate it for each fuzzing test just before
running the fuzzer.
@n-peugnet n-peugnet merged commit 6b6a7d7 into main Jan 17, 2024
8 checks passed
@n-peugnet n-peugnet deleted the fuzzing branch January 17, 2024 16:56
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.

1 participant