commit | 5d7e61fb61b1ca174827b0a71a6cef1fec0c91af | [log] [tgz] |
---|---|---|
author | Paul Elliott <paul.elliott@arm.com> | Tue Feb 15 16:05:17 2022 +0000 |
committer | Paul Elliott <paul.elliott@arm.com> | Tue Feb 15 16:05:17 2022 +0000 |
tree | c36c94da1650a61e966b6d807d592cc53b96f8f7 | |
parent | a1dc3e5a6058d05cfe6a464261072deb090c7fa6 [diff] [blame] |
Fix uninitialised return value. Signed-off-by: Paul Elliott <paul.elliott@arm.com>
diff --git a/programs/fuzz/common.c b/programs/fuzz/common.c index 465a76e..4d58402 100644 --- a/programs/fuzz/common.c +++ b/programs/fuzz/common.c
@@ -64,6 +64,9 @@ if( p_rng != NULL ) { //use mbedtls_ctr_drbg_random to find bugs in it ret = mbedtls_ctr_drbg_random(p_rng, output, output_len); + } else { + //fall through to pseudo-random + ret = 0; } #else (void) p_rng;