summaryrefslogtreecommitdiffhomepage
path: root/fuzz/fuzz-common.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-common.c
parent121e6e620269ff3eef7ef46d6ab7057e56317588 (diff)
fuzzing - fix some wrong types and -lcrypt on macos
Diffstat (limited to 'fuzz/fuzz-common.c')
-rw-r--r--fuzz/fuzz-common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fuzz/fuzz-common.c b/fuzz/fuzz-common.c
index 3f8d081..18e8a29 100644
--- a/fuzz/fuzz-common.c
+++ b/fuzz/fuzz-common.c
@@ -239,7 +239,7 @@ int fuzz_run_preauth(const uint8_t *Data, size_t Size, int skip_kexmaths) {
}
uint32_t wrapseed;
- genrandom(&wrapseed, sizeof(wrapseed));
+ genrandom((void*)&wrapseed, sizeof(wrapseed));
wrapfd_setseed(wrapseed);
int fakesock = wrapfd_new();
@@ -275,7 +275,7 @@ int fuzz_run_client(const uint8_t *Data, size_t Size, int skip_kexmaths) {
ses.kexstate.donefirstkex = 1;
uint32_t wrapseed;
- genrandom(&wrapseed, sizeof(wrapseed));
+ genrandom((void*)&wrapseed, sizeof(wrapseed));
wrapfd_setseed(wrapseed);
int fakesock = wrapfd_new();