1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-11-03 20:33:16 +03:00

Merge pull request #5526 from paul-elliott-arm/fix_fuzzer_null_ref

Ensure ctr_drbg is initialised every time in fuzz_server
This commit is contained in:
Manuel Pégourié-Gonnard
2022-02-15 10:31:03 +01:00
committed by GitHub
2 changed files with 8 additions and 6 deletions

View File

@@ -971,6 +971,7 @@ int mbedtls_aes_crypt_ecb( mbedtls_aes_context *ctx,
unsigned char output[16] )
{
AES_VALIDATE_RET( ctx != NULL );
AES_VALIDATE_RET( ctx->rk != NULL );
AES_VALIDATE_RET( input != NULL );
AES_VALIDATE_RET( output != NULL );
AES_VALIDATE_RET( mode == MBEDTLS_AES_ENCRYPT ||