From 24cfda9e3c4257fa015963d7a0cf697270f37921 Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Mon, 2 Nov 2020 20:33:48 +0800 Subject: fuzzing - fix some wrong types and -lcrypt on macos --- fuzz/fuzz-sshpacketmutator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fuzz/fuzz-sshpacketmutator.c') diff --git a/fuzz/fuzz-sshpacketmutator.c b/fuzz/fuzz-sshpacketmutator.c index 4ad60ef..d22dc07 100644 --- a/fuzz/fuzz-sshpacketmutator.c +++ b/fuzz/fuzz-sshpacketmutator.c @@ -285,7 +285,7 @@ size_t LLVMFuzzerCustomCrossOver(const uint8_t *Data1, size_t Size1, unsigned int num_out = min_out + nrand48(randstate) % (max_out-min_out+1); for (i = 0; i < num_out; i++) { - int choose = nrand48(randstate) % (num_packets1 + num_packets2); + unsigned int choose = nrand48(randstate) % (num_packets1 + num_packets2); buffer *p = NULL; if (choose < num_packets1) { p = packets1[choose]; -- cgit v1.2.3