diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-04-06 11:53:33 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-04-06 17:35:47 +0200 |
commit | 9ec8b870dc35acad376a0f6b48b4ca289839671f (patch) | |
tree | 1d53357c9a19297a87dcdb50c976f20ab820dfd4 /devel | |
parent | 11b6c098647596f62e621d1d9a6f54995be9e22b (diff) | |
download | gnutls-9ec8b870dc35acad376a0f6b48b4ca289839671f.tar.gz |
fuzz: do not enable the openpgp fuzzer when openpgp is disabledtmp-fix-coverity-issues
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'devel')
-rw-r--r-- | devel/fuzz/gnutls_openpgp_cert_parser_fuzzer.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/devel/fuzz/gnutls_openpgp_cert_parser_fuzzer.cc b/devel/fuzz/gnutls_openpgp_cert_parser_fuzzer.cc index c0c230e44b..c4c46c903e 100644 --- a/devel/fuzz/gnutls_openpgp_cert_parser_fuzzer.cc +++ b/devel/fuzz/gnutls_openpgp_cert_parser_fuzzer.cc @@ -15,7 +15,7 @@ # ################################################################################ */ - +#include <config.h> #include <assert.h> #include <stdint.h> @@ -24,6 +24,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { +#ifdef ENABLE_OPENPGP gnutls_datum_t raw; gnutls_datum_t out; gnutls_openpgp_crt_t crt; @@ -43,5 +44,6 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { } gnutls_openpgp_crt_deinit(crt); +#endif return 0; } |