diff fuzz/fuzz-sshpacketmutator.c @ 1775:8179eabe16c9

fuzzing - fix some wrong types and -lcrypt on macos
author Matt Johnston <matt@ucc.asn.au>
date Mon, 02 Nov 2020 20:33:48 +0800
parents 833bf9947603
children
line wrap: on
line diff
--- a/fuzz/fuzz-sshpacketmutator.c	Sun Nov 01 23:44:58 2020 +0800
+++ b/fuzz/fuzz-sshpacketmutator.c	Mon Nov 02 20:33:48 2020 +0800
@@ -285,7 +285,7 @@
         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];