Skip to content

Commit

Permalink
test: enable tcp relay for bootstrap fuzzing
Browse files Browse the repository at this point in the history
  • Loading branch information
sudden6 committed Dec 4, 2022
1 parent 7ee7720 commit 9fae455
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions testing/fuzzing/bootstrap_harness.cc
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,11 @@ void TestBootstrap(Fuzz_Data &input)
tox_options_set_proxy_port(opts.get(), 8080);
}

CONSUME1_OR_RETURN(const uint8_t tcp_relay_enabled, input);
if (tcp_relay_enabled >= (UINT8_MAX / 2)) {
tox_options_set_tcp_port(opts.get(), 33445);
}

Tox_Err_New error_new;
Tox *tox = tox_new(opts.get(), &error_new);

Expand Down

0 comments on commit 9fae455

Please sign in to comment.