diff options
author | Matt Johnston <matt@ucc.asn.au> | 2017-05-13 22:50:54 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2017-05-13 22:50:54 +0800 |
commit | fb719e3d0ba3571d3abc5638d1fbbe9e1675d6a7 (patch) | |
tree | 7a72eeedf1e3c89258e1e35057f737f1d0176f9c /dbrandom.c | |
parent | 9f24cdf74c93aa75416687972e69b5b4c8be2698 (diff) |
fuzz harness
--HG--
branch : fuzz
Diffstat (limited to 'dbrandom.c')
-rw-r--r-- | dbrandom.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -28,6 +28,7 @@ #include "bignum.h" #include "dbrandom.h" #include "runopts.h" +#include "fuzz.h" /* this is used to generate unique output from the same hashpool */ @@ -147,7 +148,7 @@ void addrandom(unsigned char * buf, unsigned int len) hash_state hs; #ifdef DROPBEAR_FUZZ - if (opts.fuzz.fuzzing || opts.fuzz.recordf) { + if (fuzz.fuzzing || fuzz.recordf) { return; } #endif @@ -165,7 +166,7 @@ void addrandom(unsigned char * buf, unsigned int len) static void write_urandom() { #ifdef DROPBEAR_FUZZ - if (opts.fuzz.fuzzing || opts.fuzz.recordf) { + if (fuzz.fuzzing || fuzz.recordf) { return; } #endif @@ -203,7 +204,7 @@ void seedrandom() { clock_t clockval; #ifdef DROPBEAR_FUZZ - if (opts.fuzz.fuzzing || opts.fuzz.recordf) { + if (fuzz.fuzzing || fuzz.recordf) { seedfuzz(); return; } |