diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2017-07-07 14:59:52 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2017-07-07 15:03:54 +0200 |
commit | 92cb6043d09041a354b2a65e8bad3bf89aa98dea (patch) | |
tree | 5148d0faa2eb89ed7cacbe6ac2719dcbef1c1605 /devel | |
parent | 7178acf563da16f52cca029fd8ece889cec68ee1 (diff) | |
download | gnutls-92cb6043d09041a354b2a65e8bad3bf89aa98dea.tar.gz |
fuzz: undid changes related to boringssl server/client corpus format [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Diffstat (limited to 'devel')
-rw-r--r-- | devel/fuzz/gnutls_client_fuzzer.cc | 11 | ||||
-rw-r--r-- | devel/fuzz/gnutls_server_fuzzer.cc | 11 |
2 files changed, 0 insertions, 22 deletions
diff --git a/devel/fuzz/gnutls_client_fuzzer.cc b/devel/fuzz/gnutls_client_fuzzer.cc index 81718500cf..8ed8f299d5 100644 --- a/devel/fuzz/gnutls_client_fuzzer.cc +++ b/devel/fuzz/gnutls_client_fuzzer.cc @@ -75,17 +75,6 @@ int LLVMFuzzerTestOneInput(const uint8_t * data, size_t size) gnutls_session_t session; gnutls_certificate_credentials_t xcred; struct mem_st memdata; - uint16_t tag; - - if (size < 2) - abort(); - - memcpy(&tag, data, 2); - data += 2; - size -= 2; - - if (tag != 0) /* ignore */ - return 0; res = gnutls_init(&session, GNUTLS_CLIENT); assert(res >= 0); diff --git a/devel/fuzz/gnutls_server_fuzzer.cc b/devel/fuzz/gnutls_server_fuzzer.cc index 8c36dfbb88..a9804f32dc 100644 --- a/devel/fuzz/gnutls_server_fuzzer.cc +++ b/devel/fuzz/gnutls_server_fuzzer.cc @@ -302,17 +302,6 @@ int LLVMFuzzerTestOneInput(const uint8_t * data, size_t size) gnutls_session_t session; gnutls_certificate_credentials_t xcred; struct mem_st memdata; - uint16_t tag; - - if (size < 2) - abort(); - - memcpy(&tag, data, 2); - data += 2; - size -= 2; - - if (tag != 0) /* ignore */ - return 0; res = gnutls_init(&session, GNUTLS_SERVER); assert(res >= 0); |