From d7ecfec5e29c2cd3a19fdf21e61b2bd5afad0bbf Mon Sep 17 00:00:00 2001 From: Juliusz Sosinowicz Date: Fri, 3 Apr 2026 09:57:43 +0200 Subject: [PATCH] Add NULL checks for context/ciphertext/out in wc_HpkeContextOpenBase F-1374 --- wolfcrypt/src/hpke.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wolfcrypt/src/hpke.c b/wolfcrypt/src/hpke.c index c83158d4f6..8f16f66f70 100644 --- a/wolfcrypt/src/hpke.c +++ b/wolfcrypt/src/hpke.c @@ -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; }