gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnunet] 19/28: RECLAIM: fix 1-byte overflow in DID_did_to_pkey.


From: gnunet
Subject: [gnunet] 19/28: RECLAIM: fix 1-byte overflow in DID_did_to_pkey.
Date: Mon, 06 Feb 2023 06:19:21 +0100

This is an automated email from the git hooks/post-receive script.

martin-schanzenbach pushed a commit to branch master
in repository gnunet.

commit 09ed5e00e0ead9ad8e382cd015a4c0c2146f6325
Author: ulfvonbelow <strilen@tilde.club>
AuthorDate: Sun Jan 29 06:10:49 2023 -0600

    RECLAIM: fix 1-byte overflow in DID_did_to_pkey.
    
    Needs to be able to fit a null-terminator as well.
    
    Signed-off-by: Martin Schanzenbach <schanzen@gnunet.org>
---
 src/reclaim/did_helper.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/reclaim/did_helper.c b/src/reclaim/did_helper.c
index 5600b7440..17f3b21b2 100644
--- a/src/reclaim/did_helper.c
+++ b/src/reclaim/did_helper.c
@@ -78,7 +78,7 @@ DID_identity_to_did (struct GNUNET_IDENTITY_Ego *ego)
 enum GNUNET_GenericReturnValue
 DID_did_to_pkey (const char *did, struct GNUNET_IDENTITY_PublicKey *pkey)
 {
-  char pkey_str[MAX_DID_SPECIFIC_IDENTIFIER_LENGTH];
+  char pkey_str[MAX_DID_SPECIFIC_IDENTIFIER_LENGTH + 1]; /* 0-term */
 
   if ((1 != (sscanf (did,
                      GNUNET_DID_METHOD_PREFIX "%"

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]