Add NULL checks for context/ciphertext/out in wc_HpkeContextOpenBase F-1374

This commit is contained in:
Juliusz Sosinowicz
2026-04-03 09:57:43 +02:00
parent dcde00a1eb
commit d7ecfec5e2
+1 -1
View File
@@ -1175,7 +1175,7 @@ int wc_HpkeContextOpenBase(Hpke* hpke, HpkeBaseContext* context, byte* aad,
int ret;
byte nonce[HPKE_Nn_MAX];
WC_DECLARE_VAR(aes, Aes, 1, 0);
if (hpke == NULL) {
if (hpke == NULL || context == NULL || ciphertext == NULL || out == NULL) {
return BAD_FUNC_ARG;
}