summaryrefslogtreecommitdiffhomepage
path: root/fuzz/fuzz-sshpacketmutator.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2020-11-02 20:33:48 +0800
committerMatt Johnston <matt@ucc.asn.au>2020-11-02 20:33:48 +0800
commit24cfda9e3c4257fa015963d7a0cf697270f37921 (patch)
tree5434bd6d18c532c5181e651db905054067b51921 /fuzz/fuzz-sshpacketmutator.c
parent121e6e620269ff3eef7ef46d6ab7057e56317588 (diff)
fuzzing - fix some wrong types and -lcrypt on macos
Diffstat (limited to 'fuzz/fuzz-sshpacketmutator.c')
-rw-r--r--fuzz/fuzz-sshpacketmutator.c2
1 files changed, 1 insertions, 1 deletions
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];