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

CIFuzz integration #437

Merged
merged 2 commits into from
Jan 20, 2022
Merged

CIFuzz integration #437

merged 2 commits into from
Jan 20, 2022

Conversation

randy408
Copy link
Contributor

@randy408 randy408 commented Mar 3, 2020

CIFuzz will run the fuzz target (cjson_read_fuzzer.c) each time a pull request is submitted to detect bugs before they make it into the codebase.

It runs for about 10 minutes and produces a test case if it finds a bug, the bug can be reproduced with fuzz_main if the project is built with -fsanitize=address/undefined as CFLAGS.

Copy link
Collaborator

@Alanscut Alanscut left a comment

Choose a reason for hiding this comment

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

@randy408 where can I find the result when a PR triggers CIFuzz?

@randy408
Copy link
Contributor Author

If CIFuzz finds a crash it will upload the file as an artifact e.g. https://github.com/randy408/libspng/runs/695939396.

@randy408
Copy link
Contributor Author

randy408 commented Nov 23, 2020

I've renamed the file (doesn't really make a difference), as you can see the top-most check is what all future PR's will have.

This is an extra check on top of the existing OSS-Fuzz integration, the check will fail if a PR introduces a bug or breaks the build for OSS-Fuzz.

@Alanscut Alanscut merged commit 2fc55f6 into DaveGamble:master Jan 20, 2022
@Alanscut Alanscut mentioned this pull request Jan 20, 2022
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.

2 participants