diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-01-03 14:49:03 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-01-03 16:14:14 +0100 |
commit | c4dedf52dca628f48a57c3df91c0bf784c0a738f (patch) | |
tree | 3fc1d7cf5f21ef3ebcdfebfe8a3b763952663ceb /devel/fuzz | |
parent | 9e208ba4893b969a7c12ead52e0961ce8d6cd027 (diff) | |
download | gnutls-c4dedf52dca628f48a57c3df91c0bf784c0a738f.tar.gz |
tests: added reproducer for client issues
This allows to reproduce issues found on client handling, by adding
a transcript in client-interesting. Currently it contains values
found using oss-fuzz.
The client3.disabled transcript is disabled because it depends
on a fix in nettle.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'devel/fuzz')
-rw-r--r-- | devel/fuzz/gnutls_client_fuzzer.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/devel/fuzz/gnutls_client_fuzzer.cc b/devel/fuzz/gnutls_client_fuzzer.cc index b155ca5edf..5a198ce9ea 100644 --- a/devel/fuzz/gnutls_client_fuzzer.cc +++ b/devel/fuzz/gnutls_client_fuzzer.cc @@ -26,7 +26,10 @@ #include <gnutls/gnutls.h> -extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { +#ifdef __cplusplus +extern "C" +#endif +int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { int res; gnutls_session_t session; gnutls_certificate_credentials_t xcred; |