mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-10-24 03:48:55 +03:00
tests: Add differential fuzzer for libssh and openssh
Signed-off-by: Nikhil V <nikhilgreyshines@gmail.com> Reviewed-by: Norbert Pocs <norbertpocs0@gmail.com> Reviewed-by: Pavol Žáčik <pzacik@redhat.com> Reviewed-by: Jakub Jelen <jjelen@redhat.com> Merge-Request: <https://gitlab.com/libssh/libssh-mirror/-/merge_requests/810>
This commit is contained in:
@@ -259,6 +259,7 @@ message(STATUS "Blowfish cipher support: ${HAVE_BLOWFISH}")
|
||||
message(STATUS "PKCS #11 URI support: ${WITH_PKCS11_URI}")
|
||||
message(STATUS "With PKCS #11 provider support: ${WITH_PKCS11_PROVIDER}")
|
||||
message(STATUS "With FIDO2/U2F support: ${WITH_FIDO2}")
|
||||
message(STATUS "Continuous fuzzing in Differential Configuration fuzzer: ${FUZZ_CONTINUOUS_MODE}")
|
||||
if (WITH_FIDO2)
|
||||
message(STATUS "With libfido2 (internal usb-hid support): ${HAVE_LIBFIDO2}")
|
||||
endif (WITH_FIDO2)
|
||||
|
||||
@@ -42,6 +42,10 @@ option(
|
||||
FUZZ_TESTING
|
||||
"Build with fuzzer for the server and client (automatically enables none cipher!)"
|
||||
OFF)
|
||||
option(
|
||||
FUZZ_CONTINUOUS_MODE
|
||||
"Continuous fuzzing in Differential Configuration fuzzer"
|
||||
OFF)
|
||||
option(PICKY_DEVELOPER "Build with picky developer flags" OFF)
|
||||
option(WITH_HERMETIC_USR "Build with support for hermetic /usr/" OFF)
|
||||
|
||||
|
||||
@@ -309,6 +309,10 @@
|
||||
/* Define to 1 if you want to enable FIDO2/U2F support */
|
||||
#cmakedefine WITH_FIDO2 1
|
||||
|
||||
/* Define to 1 if you want to enable continuous fuzzing by logging divergences to a 'bugs' directory
|
||||
* instead of crashing immediately. Note: This is only applicable to the differential fuzzer. */
|
||||
#cmakedefine FUZZ_CONTINUOUS_MODE 1
|
||||
|
||||
/*************************** ENDIAN *****************************/
|
||||
|
||||
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
|
||||
|
||||
@@ -58,6 +58,7 @@ fuzzer(ssh_privkey_fuzzer)
|
||||
fuzzer(ssh_pubkey_fuzzer)
|
||||
fuzzer(ssh_sftp_attr_fuzzer)
|
||||
fuzzer(ssh_sshsig_fuzzer)
|
||||
fuzzer(ssh_config_diff_fuzzer)
|
||||
if (WITH_SERVER)
|
||||
fuzzer(ssh_scp_fuzzer)
|
||||
fuzzer(ssh_server_fuzzer)
|
||||
|
||||
1077
tests/fuzz/ssh_config_diff_fuzzer.c
Normal file
1077
tests/fuzz/ssh_config_diff_fuzzer.c
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,2 @@
|
||||
Host my_host
|
||||
AddressFamily inet6
|
||||
@@ -0,0 +1,2 @@
|
||||
Host my_host
|
||||
KexAlgorithms curve25519-sha256@libssh.org,ecdh-sha2-nistp256
|
||||
2
tests/fuzz/ssh_config_diff_fuzzer_corpus/macs_basic
Normal file
2
tests/fuzz/ssh_config_diff_fuzzer_corpus/macs_basic
Normal file
@@ -0,0 +1,2 @@
|
||||
Host my_host
|
||||
MACs hmac-sha2-256,hmac-sha2-512
|
||||
@@ -0,0 +1,3 @@
|
||||
Host my_host
|
||||
ServerAliveCountMax 5
|
||||
ServerAliveInterval 300
|
||||
@@ -0,0 +1,2 @@
|
||||
Host my_host
|
||||
StrictHostKeyChecking accept-new
|
||||
Reference in New Issue
Block a user