fuzzing: extend fuzzing coverage

Try fuzzing some functions which write to file/file descriptor; to avoid
slowing the fuzzer, close its stdout
This commit is contained in:
Nardi Ivan
2023-10-09 15:41:46 +02:00
committed by Ivan Nardi
parent 86115a8a65
commit 1366d94156
7 changed files with 32 additions and 4 deletions
+6
View File
@@ -191,7 +191,13 @@ int mbedtls_aes_setkey_enc( mbedtls_aes_context *ctx, const unsigned char *key,
if( aes_init_done == 0 )
{
aes_gen_tables();
/* Allow to test both aesni and not aesni data path when fuzzing.
We can call aes_gen_tables() at every iteration without any issues
(performances asides) */
#ifndef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
aes_init_done = 1;
#endif
}
ctx->rk = RK = ctx->buf;