If a key is not of a supported type, something went wrong

This commit is contained in:
Gilles Peskine 2020-02-25 19:54:27 +01:00
parent e60b365a5e
commit d7fb66fd13
2 changed files with 8 additions and 4 deletions

View file

@ -59,9 +59,11 @@ int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
}
else
#endif
{
ret = 0;
}
{
/* The key is valid but is not of a supported type.
* This should not happen. */
abort( );
}
}
mbedtls_pk_free( &pk );
#else

View file

@ -60,7 +60,9 @@ int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
else
#endif
{
ret = 0;
/* The key is valid but is not of a supported type.
* This should not happen. */
abort( );
}
}
mbedtls_pk_free( &pk );