gnunet-svn
[Top][All Lists]
Advanced

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

[gnunet] branch master updated: fix #6155


From: gnunet
Subject: [gnunet] branch master updated: fix #6155
Date: Fri, 03 Apr 2020 18:50:21 +0200

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

grothoff pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new 6fd24eef2 fix #6155
6fd24eef2 is described below

commit 6fd24eef238349d71ddd5bff7b87b3404e972ba6
Author: Christian Grothoff <address@hidden>
AuthorDate: Fri Apr 3 18:45:46 2020 +0200

    fix #6155
---
 src/util/strings.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/util/strings.c b/src/util/strings.c
index e8d411ea5..be2ec33dc 100644
--- a/src/util/strings.c
+++ b/src/util/strings.c
@@ -104,6 +104,7 @@ GNUNET_STRINGS_pp2s (const struct GNUNET_PeerIdentity *pids,
   size_t off;
   size_t plen = num_pids * 5 + 1;
 
+  GNUNET_assert (num_pids < UINT32_MAX / 5);
   off = 0;
   buf = GNUNET_malloc (plen);
   for (unsigned int i = 0; i < num_pids; i++)

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

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