aboutsummaryrefslogtreecommitdiff
path: root/tests/fuzz/ssh_server_fuzzer.cpp
diff options
context:
space:
mode:
authorJakub Jelen <jjelen@redhat.com>2020-04-29 14:22:46 +0200
committerAndreas Schneider <asn@cryptomilk.org>2020-05-05 14:23:06 +0200
commite26e98e59f93a658adaf933897cd50125433ac6f (patch)
treed49313405e0a4da5c67749598e753f00cc67a073 /tests/fuzz/ssh_server_fuzzer.cpp
parentae184db913aef07d2cbfa9605f2af66f4d2365e5 (diff)
downloadlibssh-e26e98e59f93a658adaf933897cd50125433ac6f.tar.gz
libssh-e26e98e59f93a658adaf933897cd50125433ac6f.tar.xz
libssh-e26e98e59f93a658adaf933897cd50125433ac6f.zip
fuzz: Do not parse configuration files
Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'tests/fuzz/ssh_server_fuzzer.cpp')
-rw-r--r--tests/fuzz/ssh_server_fuzzer.cpp3
1 files changed, 3 insertions, 0 deletions
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);