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

Fuzzing RGBDS? #997

Open
ISSOtm opened this issue May 7, 2022 · 1 comment
Open

Fuzzing RGBDS? #997

ISSOtm opened this issue May 7, 2022 · 1 comment
Labels
meta This isn't related to the tools directly: repo organization, maintainership... tests This affects the test suite

Comments

@ISSOtm
Copy link
Member

ISSOtm commented May 7, 2022

NieDzejkob did it back then I think with AFL, but LLVM also has libfuzzer, which seems to be easier to set up.

@ISSOtm ISSOtm added tests This affects the test suite good first issue New to the codebase? You can help no problem! labels May 7, 2022
@aaaaaa123456789
Copy link
Member

Basic setup:

  • Build the programs as a library (i.e., no main)
  • Create the fuzzer entry point (int LLVMFuzzerTestOneInput (const unsigned char *, size_t); must accept any input, run it and return 0)
  • Link the whole thing and build with -fsanitize=fuzzer and you're done: the resulting binary fuzzes the program

@Rangi42 Rangi42 added the meta This isn't related to the tools directly: repo organization, maintainership... label Dec 8, 2023
@Rangi42 Rangi42 removed the good first issue New to the codebase? You can help no problem! label Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
meta This isn't related to the tools directly: repo organization, maintainership... tests This affects the test suite
Projects
None yet
Development

No branches or pull requests

3 participants