mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-12-24 17:41:01 +03:00
If a key is not of a supported type, something went wrong
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user