8000 Add ClusterFuzzLite integration by DavidKorczynski · Pull Request #54 · progsource/maddy · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add ClusterFuzzLite integration #54

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 2 commits into
base: master
Choose a base branch
from

Conversation

DavidKorczynski
Copy link

This adds fuzzing by way of ClusterFuzzLite, which is a GitHub action that will perform a short amount of fuzzing for new PRs. The goal is to use fuzzing to catch bugs that may be introduced by new PRs.

I added a fuzzer that targets the parsing logic, and currently se 8000 t the timeout of CFLite to 180 seconds. CFLite will flag if the fuzzer finds any issues in the code introduced by a PR.

Signed-off-by: David Korczynski <david@adalogics.com>
Signed-off-by: David Korczynski <david@adalogics.com>
@progsource progsource changed the base branch from master to dev December 23, 2023 12:13
Copy link
Owner
@progsource progsource left a comment

Choose a reason for hiding this comment

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

Thank you for your contribution!

It would be nice to always have an empty line at the end of the files. And please follow CONTRIBUTING

on:
workflow_dispatch:
pull_request:
branches: [ master ]
Copy link
Owner

Choose a reason for hiding this comment

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

Suggested change
branches: [ master ]
branches:
- master
- dev

strategy:
fail-fast: false
matrix:
sanitizer: [address]
Copy link
Owner

Choose a reason for hiding this comment

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

Maybe it could be good, to also add memory and undefined behavior. What do you think?

#include <string>

extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
std::string payload(reinterpret_cast<const char *>(data), size);
Copy link
Owner

Choose a reason for hiding this comment

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

Is the reinterpret cast really needed? does

Suggested change
std::string payload(reinterpret_cast<const char *>(data), size);
std::string payload(data, size);

not work?

@progsource
Copy link
Owner

In https://github.com/progsource/maddy/actions/runs/7307934736/job/19914831467?pr=54 it says

2023-12-23 12:46:55,438 - root - ERROR - Request to https://api.github.com/repos/progsource/maddy/actions/artifacts?per_page=100&page=1 failed. Code: 401. Response: {'message': 'Bad credentials', 'documentation_url': 'https://docs.github.com/rest'}

Does there need to be maybe another secrets.GITHUB_TOKEN somewhere?

@progsource progsource changed the base branch from dev to master July 19, 2024 03:52
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
0