mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-05 14:40:50 +02:00
Add NULL parameter validation to wc_CryptKey F-1372
This commit is contained in:
@@ -338,6 +338,9 @@ int wc_CryptKey(const char* password, int passwordSz, const byte* salt,
|
||||
|
||||
WOLFSSL_ENTER("wc_CryptKey");
|
||||
|
||||
if (password == NULL || salt == NULL || input == NULL)
|
||||
return BAD_FUNC_ARG;
|
||||
|
||||
if (length < 0)
|
||||
return BAD_LENGTH_E;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user