Skip to content

Add fuzzing set up#114

Merged
indutny merged 2 commits intonodejs:masterfrom
DavidKorczynski:master
May 28, 2021
Merged

Add fuzzing set up#114
indutny merged 2 commits intonodejs:masterfrom
DavidKorczynski:master

Conversation

@DavidKorczynski
Copy link
Copy Markdown
Contributor

This adds a fuzzing set up to llhttp and OSS-Fuzz - much similar to what we did with http-parser: https://github.com/nodejs/http-parser/tree/master/fuzzers

The OSS-Fuzz set up here: google/oss-fuzz#5850

Is this something you would be interested in? it would be great to get the parser fuzzed - the only thing we will need is an email(s) that will receive bug reports, coverage reports and more.

@pallas
Copy link
Copy Markdown
Contributor

pallas commented May 27, 2021

I'm interested in fuzzing, and I've been using a similar setup for AFL. Note that to get all the paths covered, we need to test the different combinations of lenient settings and both the REQUEST and RESPONSE parsers, not just the default settings with the parser set to BOTH.

@pallas
Copy link
Copy Markdown
Contributor

pallas commented May 27, 2021

Here's the current list of lenient settings for reference:

llhttp_set_lenient_headers
llhttp_set_lenient_chunked_length
llhttp_set_lenient_keep_alive

@DavidKorczynski
Copy link
Copy Markdown
Contributor Author

Thanks @pallas - I updated the fuzzer to match your suggestions.

Copy link
Copy Markdown
Member

@indutny indutny left a comment

Choose a reason for hiding this comment

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

LGTM. Fuzzing is great. Let's fuzz all the things!

@indutny indutny merged commit 2f5591a into nodejs:master May 28, 2021
@indutny
Copy link
Copy Markdown
Member

indutny commented May 28, 2021

@DavidKorczynski idk if we have a special email address for http parser reports, but you could just use my email from github profile: https://github.com/indutny/

@indutny
Copy link
Copy Markdown
Member

indutny commented May 28, 2021

Thanks for opening this PR!

elijah-charbel added a commit to elijah-charbel/llhttp that referenced this pull request Jul 29, 2025
PR-URL: nodejs/llhttp#114
Reviewed-By: Fedor Indutny <[email protected]>
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.

3 participants