summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2017-07-07 14:59:52 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2017-07-07 15:03:54 +0200
commit92cb6043d09041a354b2a65e8bad3bf89aa98dea (patch)
tree5148d0faa2eb89ed7cacbe6ac2719dcbef1c1605 /devel
parent7178acf563da16f52cca029fd8ece889cec68ee1 (diff)
downloadgnutls-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.cc11
-rw-r--r--devel/fuzz/gnutls_server_fuzzer.cc11
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);