summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2017-02-24 09:53:26 +0100
committerNikos Mavrogiannopoulos <nmav@redhat.com>2017-02-24 09:53:55 +0100
commitd08d141d83fce6dcc0219ca75e93763963608bb2 (patch)
treee63b25f025b91efd8b01601f185fee4799855dd1 /devel
parent804488e617e79d32b3423731f77f7ab94a948167 (diff)
downloadgnutls-d08d141d83fce6dcc0219ca75e93763963608bb2.tar.gz
devel/fuzz: added necessary casts for compilation [ci skip]
Also added the IDNA targets to makefile's default target. Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'devel')
-rw-r--r--devel/fuzz/Makefile5
-rw-r--r--devel/fuzz/gnutls_idna_parser_fuzzer.cc2
-rw-r--r--devel/fuzz/gnutls_reverse_idna_parser_fuzzer.cc2
3 files changed, 5 insertions, 4 deletions
diff --git a/devel/fuzz/Makefile b/devel/fuzz/Makefile
index f0459fdf28..d45fc7bd57 100644
--- a/devel/fuzz/Makefile
+++ b/devel/fuzz/Makefile
@@ -22,7 +22,8 @@ COMMON=-I../../lib/includes -L../../lib/.libs -Wl,-rpath=../../lib/.libs -lgnutl
all: gnutls_pkcs7_parser_fuzzer gnutls_client_fuzzer gnutls_dn_parser_fuzzer \
gnutls_openpgp_cert_parser_fuzzer gnutls_pkcs7_parser_fuzzer gnutls_pkcs8_key_parser_fuzzer \
- gnutls_private_key_parser_fuzzer gnutls_server_fuzzer gnutls_x509_parser_fuzzer
+ gnutls_private_key_parser_fuzzer gnutls_server_fuzzer gnutls_x509_parser_fuzzer \
+ gnutls_reverse_idna_parser_fuzzer gnutls_idna_parser_fuzzer
gnutls_pkcs7_parser_fuzzer: gnutls_pkcs7_parser_fuzzer.cc
$(CC) $(CFLAGS) main.c $^ $(COMMON) -o $@
@@ -58,4 +59,4 @@ clean:
rm -f gnutls_pkcs7_parser_fuzzer gnutls_client_fuzzer gnutls_dn_parser_fuzzer \
gnutls_openpgp_cert_parser_fuzzer gnutls_pkcs7_parser_fuzzer gnutls_pkcs8_key_parser_fuzzer \
gnutls_private_key_parser_fuzzer gnutls_server_fuzzer gnutls_x509_parser_fuzzer \
- gnutls_idna_parser_fuzzer gnutls_reverse_idna_parser_fuzzer
+ gnutls_idna_parser_fuzzer gnutls_reverse_idna_parser_fuzzer
diff --git a/devel/fuzz/gnutls_idna_parser_fuzzer.cc b/devel/fuzz/gnutls_idna_parser_fuzzer.cc
index cdf92f89dc..0690ac31b8 100644
--- a/devel/fuzz/gnutls_idna_parser_fuzzer.cc
+++ b/devel/fuzz/gnutls_idna_parser_fuzzer.cc
@@ -32,7 +32,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
if (ret < 0)
goto cleanup;
- assert(out.size == strlen(out.data));
+ assert(out.size == strlen((char*)out.data));
gnutls_free(out.data);
cleanup:
diff --git a/devel/fuzz/gnutls_reverse_idna_parser_fuzzer.cc b/devel/fuzz/gnutls_reverse_idna_parser_fuzzer.cc
index eda44a1f09..78deae68f9 100644
--- a/devel/fuzz/gnutls_reverse_idna_parser_fuzzer.cc
+++ b/devel/fuzz/gnutls_reverse_idna_parser_fuzzer.cc
@@ -32,7 +32,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
if (ret < 0)
goto cleanup;
- assert(out.size == strlen(out.data));
+ assert(out.size == strlen((char*)out.data));
gnutls_free(out.data);
cleanup: