summaryrefslogtreecommitdiff
path: root/devel/fuzz
diff options
context:
space:
mode:
Diffstat (limited to 'devel/fuzz')
-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);