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

Integrating with Google/OSS-fuzz #2234

Open
jesslatimer opened this issue Feb 23, 2023 · 2 comments
Open

Integrating with Google/OSS-fuzz #2234

jesslatimer opened this issue Feb 23, 2023 · 2 comments
Labels

Comments

@jesslatimer
Copy link

Hi,

I would like to help keep rdflib running smoothly by adding fuzz testing and integrating it with google/oss-fuzz. In case you are not familiar with fuzz testing, briefly, it is an additional layer of testing (working alongside other tests) that is particularly good at finding unexpected bugs as it doesn't rely on a developer's suspicion to target a piece of code for testing. Wikipedia explains it nicely:

In programming and software development, fuzzing or fuzz testing is an automated software testing technique that involves providing invalid, unexpected, or random data as inputs to a computer program. The program is then monitored for exceptions such as crashes, failing built-in code assertions, or potential memory leaks.

Google offers a free, continuous fuzzing service called OSS-fuzz. If rdflib is integrated into oss-fuzz, the fuzz tests under rdflib will be built and then run once a day, to search for bugs and vulnerabilities. This service can be integrated with the CI for rdflib so that the fuzz tests are run for 10min or so for every pull request, preventing buggy code from being merged.

I've opened up a pull request to add a basic fuzz-testing harness here #2233. If you are keen on adding rdflib to oss-fuzz I'd be happy to champion the integration :)

@aucampia
Copy link
Member

Hi @jesslatimer - I'm quite interested in more testing, I will have a look at your PR to see what this entails and give some feedback when I can, hopefully in the next week or two.

@jesslatimer
Copy link
Author

Hi @jesslatimer - I'm quite interested in more testing, I will have a look at your PR to see what this entails and give some feedback when I can, hopefully in the next week or two.

Not a problem. I look forward to hearing your comments and opinions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants