From e26e98e59f93a658adaf933897cd50125433ac6f Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Wed, 29 Apr 2020 14:22:46 +0200 Subject: fuzz: Do not parse configuration files Signed-off-by: Jakub Jelen Reviewed-by: Andreas Schneider --- tests/fuzz/ssh_client_fuzzer.cpp | 3 +++ tests/fuzz/ssh_server_fuzzer.cpp | 3 +++ 2 files changed, 6 insertions(+) (limited to 'tests') diff --git a/tests/fuzz/ssh_client_fuzzer.cpp b/tests/fuzz/ssh_client_fuzzer.cpp index 17ae4774..bc4fb259 100644 --- a/tests/fuzz/ssh_client_fuzzer.cpp +++ b/tests/fuzz/ssh_client_fuzzer.cpp @@ -90,6 +90,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) const char *env = NULL; int socket_fds[2] = {-1, -1}; ssize_t nwritten; + bool no = false; int rc; /* Set up the socket to send data */ @@ -125,6 +126,8 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) assert(rc == 0); rc = ssh_options_set(session, SSH_OPTIONS_HMAC_S_C, "none"); assert(rc == 0); + rc = ssh_options_set(session, SSH_OPTIONS_PROCESS_CONFIG, &no); + assert(rc == 0); ssh_callbacks_init(&cb); ssh_set_callbacks(session, &cb); diff --git a/tests/fuzz/ssh_server_fuzzer.cpp b/tests/fuzz/ssh_server_fuzzer.cpp index e5da7217..6796ac8e 100644 --- a/tests/fuzz/ssh_server_fuzzer.cpp +++ b/tests/fuzz/ssh_server_fuzzer.cpp @@ -119,6 +119,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { int socket_fds[2] = {-1, -1}; ssize_t nwritten; + bool no = false; int rc; /* Our struct holding information about the session. */ @@ -167,6 +168,8 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) assert(rc == 0); rc = ssh_bind_options_set(sshbind, SSH_BIND_OPTIONS_HMAC_S_C, "none"); assert(rc == 0); + rc = ssh_bind_options_set(sshbind, SSH_BIND_OPTIONS_PROCESS_CONFIG, &no); + assert(rc == 0); ssh_set_auth_methods(session, SSH_AUTH_METHOD_NONE); -- cgit v1.2.3