Skip to content

Commit

Permalink
fuzz: fixing utility_fuzzer initialize_and_validate error handling (#…
Browse files Browse the repository at this point in the history
…37316)

Signed-off-by: Adi Suissa-Peleg <[email protected]>
  • Loading branch information
adisuissa authored Nov 26, 2024
1 parent 4aa1d1b commit 868d371
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion test/common/http/utility_fuzz_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ DEFINE_PROTO_FUZZER(const test::common::http::UtilityTestCase& input) {
case test::common::http::UtilityTestCase::kInitializeAndValidate: {
const auto& options = input.initialize_and_validate();
auto options_or_error = Http2::Utility::initializeAndValidateOptions(options);
if (options_or_error.status().ok()) {
if (!options_or_error.status().ok()) {
absl::string_view msg = options_or_error.status().message();
// initializeAndValidateOptions throws exceptions for 4 different reasons due to malformed
// settings, so check for them and allow any other exceptions through
Expand Down

0 comments on commit 868d371

Please sign in to comment.