Skip to content

[fuzz]: fix oss fuzz bug 34650, validate server fuzz input for lb_subset_config - #16647

Merged
jmarantz merged 3 commits into
envoyproxy:mainfrom
chaoqin-li1123:validate_server_fuzz_input
May 27, 2021
Merged

jmarantz merged 3 commits into
envoyproxy:mainfrom
chaoqin-li1123:validate_server_fuzz_input

Conversation

@chaoqin-li1123

Copy link
Copy Markdown
Contributor

Commit Message: This pull request try to resolve fuzz bug(https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=34650), key of subset selector can't be empty when use_single_host_per_subset is set to true.
Additional Description:
Risk Level:
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Deprecated:]
[Optional API Considerations:]

chaoqin-li1123 added 2 commits May 24, 2021 22:18
Signed-off-by: chaoqin-li1123 <[email protected]>
Signed-off-by: chaoqin-li1123 <[email protected]>

@jmarantz jmarantz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

looks great with one minor comment. thanks!

Comment thread test/server/server_fuzz_test.cc Outdated
return false;
}
// Expect key to be non-empty when use_single_host_per_subset is set to true.
if (subset_selector.keys()[0].empty()) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit: make a temp for subset_selector.keys().

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks, fixed.

Signed-off-by: chaoqin-li1123 <[email protected]>

@jmarantz jmarantz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

thanks!

@jmarantz
jmarantz merged commit ffcfe04 into envoyproxy:main May 27, 2021
leyao-daily pushed a commit to leyao-daily/envoy that referenced this pull request Sep 30, 2021
…set_config (envoyproxy#16647)

Commit Message: This pull request try to resolve fuzz bug(https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=34650), key of subset selector can't be empty when use_single_host_per_subset is set to true.
Additional Description:
Risk Level:
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:

Signed-off-by: chaoqin-li1123 <[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.

2 participants