summaryrefslogtreecommitdiff
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
commita23cd960d8bb42b414b6ec35cd82d7b5b73bf946 (patch)
tree7c19413877d80195705459d1e4f3a9522b46cfd4 /fuzz/fuzz-sshpacketmutator.c
parent8b001e4d4af146bb5578bb7826406194b901c845 (diff)
downloaddropbear-a23cd960d8bb42b414b6ec35cd82d7b5b73bf946.tar.gz
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];