forked from openpgpjs/openpgpjs
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Fuzz testing #16
Open
hulkoba
wants to merge
13
commits into
v6
Choose a base branch
from
fuzz-testing
base: v6
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Fuzz testing #16
Conversation
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
hulkoba
commented
Dec 7, 2023
hulkoba
commented
Dec 7, 2023
hulkoba
added
question
Further information is requested
help wanted
Extra attention is needed
and removed
question
Further information is requested
labels
Dec 7, 2023
hulkoba
force-pushed
the
fuzz-testing
branch
8 times, most recently
from
December 11, 2023 11:25
da8c8b1
to
1b847bb
Compare
hulkoba
force-pushed
the
fuzz-testing
branch
5 times, most recently
from
December 12, 2023 12:20
f5541b4
to
8c69033
Compare
hulkoba
force-pushed
the
fuzz-testing
branch
2 times, most recently
from
December 12, 2023 12:44
7752567
to
7a41b55
Compare
janl
reviewed
Dec 12, 2023
hulkoba
force-pushed
the
fuzz-testing
branch
from
December 13, 2023 13:56
644a9e0
to
71a8592
Compare
because it is not super useul
since coverage does not work as expected at all, we can use esm. So if jazzer at some point, add esm support for esm, we can easily add it
hulkoba
force-pushed
the
fuzz-testing
branch
from
December 13, 2023 14:10
9ff6f90
to
9151687
Compare
hulkoba
force-pushed
the
fuzz-testing
branch
3 times, most recently
from
December 18, 2023 08:03
7e80bb1
to
99a506a
Compare
hulkoba
force-pushed
the
fuzz-testing
branch
from
December 18, 2023 08:07
99a506a
to
eadc867
Compare
hulkoba
force-pushed
the
fuzz-testing
branch
2 times, most recently
from
December 18, 2023 11:50
eeba908
to
afc0432
Compare
hulkoba
force-pushed
the
fuzz-testing
branch
from
December 18, 2023 14:47
afc0432
to
02adea3
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR description
Relates to #openpgpjs#1689
Adds fuzz test for
Running a fuzz test
The
test/fuzz
directory contains fuzz targets like for examplecreateMessageBinary
.You can run one fuzz target:
Notice, that
TARGET
is the name of your fuzz target module.(Don't) running with coverage
Jazzer.js unfortunately does not support coverage for esm tests, yet.
We've implemented the tests also with coverage, turned everything into cjs, but removed it because it is not super useful.
Because the imported modules were not read correctly, the result always shows, that the fuzzing function is 100% covered but not the function we are trying to fuzz.
We decided to use esm-tests and wait until jazzer.js adds coverage support for esm.
Then it can be adapted easily, by adding the
--coverage
option to the jazzer command.