-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Add fuzz test for the CDN-Loop header parser #13183
Conversation
The CDN-Loop header parser is a non-trivial parser of untrusted user data (headers!), so it’s worth fuzzing it. Fixes envoyproxy#13179. Risk Level: Low Testing: bazel run //test/extensions/filters/http/cdn_loop:parser_fuzz_test --config asan-fuzzer Docs Changes: N/A Release Notes: N/A Signed-off-by: Justin Mazzola Paluska <[email protected]>
Hi! Is there anything I can do to help push this review along? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool! Thanks so much @justin-mp, this looks great as is! I have a couple of comments I'm curious to know about.
It looks like parseCdnInfoList
is the highest level piece of the parser, so it should cover most other functions.
One thing to check might be how much coverage you get over cdn_loop/ directory -- you can do this with
VALIDATE_COVERAGE=false test/run_envoy_bazel_coverage.sh test/extensions/filters/http/cdn_loop:parser_fuzz_test. Are there major gaps after adding the unit testcases?
They’re named by the parser_test.cc test suite name and test name. Signed-off-by: Justin Mazzola Paluska <[email protected]>
Signed-off-by: Justin Mazzola Paluska <[email protected]>
Signed-off-by: Justin Mazzola Paluska <[email protected]>
I could not get this command to spit out anything! bazel reports
|
Hey Justin! Thanks for catching that mistake, in a rush I forgot to add that line. These lines are expected:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Looks good to me besides one comment
/wait
Signed-off-by: Justin Mazzola Paluska <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
The CDN-Loop header parser is a non-trivial parser of untrusted user
data (headers!), so it’s worth fuzzing it.
Fixes #13179.
Risk Level: Low
Testing: bazel run //test/extensions/filters/http/cdn_loop:parser_fuzz_test --config asan-fuzzer
Docs Changes: N/A
Release Notes: N/A
Signed-off-by: Justin Mazzola Paluska [email protected]