[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] branch master updated: util: Fix memory corruption in hpke test
From: |
gnunet |
Subject: |
[gnunet] branch master updated: util: Fix memory corruption in hpke test |
Date: |
Thu, 05 Sep 2024 13:54:36 +0200 |
This is an automated email from the git hooks/post-receive script.
martin-schanzenbach pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new 5054416f8 util: Fix memory corruption in hpke test
5054416f8 is described below
commit 5054416f81f063c503db8a8aa2ea1f535da23c0c
Author: Martin Schanzenbach <schanzen@gnunet.org>
AuthorDate: Thu Sep 5 13:53:51 2024 +0200
util: Fix memory corruption in hpke test
---
src/lib/util/test_crypto_hpke.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/lib/util/test_crypto_hpke.c b/src/lib/util/test_crypto_hpke.c
index 4778cdaa4..7f6e9065e 100644
--- a/src/lib/util/test_crypto_hpke.c
+++ b/src/lib/util/test_crypto_hpke.c
@@ -165,7 +165,7 @@ test_mode_base ()
struct GNUNET_CRYPTO_HpkeContext ctxS;
struct GNUNET_CRYPTO_HpkeContext ctxR;
uint8_t rfc9180_a2_base_nonce[GNUNET_CRYPTO_HPKE_NONCE_LEN];
- uint8_t rfc9180_a2_key[GNUNET_CRYPTO_HPKE_NONCE_LEN];
+ uint8_t rfc9180_a2_key[GNUNET_CRYPTO_HPKE_KEY_LEN];
uint8_t rfc9180_a2_info[strlen (rfc9180_a2_1_info_str) / 2];
uint8_t rfc9180_a2_pt[strlen (rfc9180_a2_1_pt_str) / 2];
uint8_t rfc9180_a2_aad[strlen (rfc9180_a2_1_aad_seq0_str) / 2];
@@ -340,7 +340,7 @@ test_mode_auth_psk ()
struct GNUNET_CRYPTO_HpkeContext ctxS;
struct GNUNET_CRYPTO_HpkeContext ctxR;
uint8_t rfc9180_a2_base_nonce[GNUNET_CRYPTO_HPKE_NONCE_LEN];
- uint8_t rfc9180_a2_key[GNUNET_CRYPTO_HPKE_NONCE_LEN];
+ uint8_t rfc9180_a2_key[GNUNET_CRYPTO_HPKE_KEY_LEN];
uint8_t rfc9180_a2_info[strlen (rfc9180_a2_4_info_str) / 2];
uint8_t rfc9180_a2_pt[strlen (rfc9180_a2_4_pt_str) / 2];
uint8_t rfc9180_a2_psk[strlen (rfc9180_a2_4_psk_str) / 2];
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnunet] branch master updated: util: Fix memory corruption in hpke test,
gnunet <=