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

fuzz: fix to avoid calling a removed function. #25169

Merged
merged 1 commit into from
Jan 25, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix to avoid calling a removed function.
Signed-off-by: Joshua Marantz <jmarantz@google.com>
  • Loading branch information
jmarantz committed Jan 25, 2023
commit 9023c87ff02a7209acd491947408dce03e06fb84
4 changes: 2 additions & 2 deletions test/common/http/http1/http1_codec_impl_fuzz_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ class Http1Harness {

void fuzz_response(Buffer::Instance& payload) {
client_ = std::make_unique<Http1::ClientConnectionImpl>(
mock_client_connection, Http1::CodecStats::atomicGet(http1_stats, stats_store),
mock_client_connection, Http1::CodecStats::atomicGet(http1_stats, *stats_store.rootScope()),
mock_client_callbacks, client_settings, Http::DEFAULT_MAX_HEADERS_COUNT);
Status status = client_->dispatch(payload);
}
void fuzz_request(Buffer::Instance& payload) {
server_ = std::make_unique<Http1::ServerConnectionImpl>(
mock_server_connection, Http1::CodecStats::atomicGet(http1_stats, stats_store),
mock_server_connection, Http1::CodecStats::atomicGet(http1_stats, *stats_store.rootScope()),
mock_server_callbacks, server_settings, Http::DEFAULT_MAX_REQUEST_HEADERS_KB,
Http::DEFAULT_MAX_HEADERS_COUNT, envoy::config::core::v3::HttpProtocolOptions::ALLOW);

Expand Down