summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2017-04-06 11:53:33 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2017-04-06 17:35:47 +0200
commit9ec8b870dc35acad376a0f6b48b4ca289839671f (patch)
tree1d53357c9a19297a87dcdb50c976f20ab820dfd4 /devel
parent11b6c098647596f62e621d1d9a6f54995be9e22b (diff)
downloadgnutls-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.cc4
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;
}