gnunet-svn
[Top][All Lists]
Advanced

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

[gnunet] branch master updated: -fix assertion


From: gnunet
Subject: [gnunet] branch master updated: -fix assertion
Date: Mon, 09 Aug 2021 15:17:45 +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 e2f5f39f0 -fix assertion
e2f5f39f0 is described below

commit e2f5f39f0d1cecf6a8f528a758cdf9615c9ba6ce
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Mon Aug 9 15:14:19 2021 +0200

    -fix assertion
---
 src/util/strings.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/util/strings.c b/src/util/strings.c
index 24335e444..673915888 100644
--- a/src/util/strings.c
+++ b/src/util/strings.c
@@ -1600,7 +1600,7 @@ GNUNET_STRINGS_base64_encode (const void *in,
   char *opt;
 
   ret = 0;
-  GNUNET_assert (len / 4 < SIZE_MAX);
+  GNUNET_assert (len < SIZE_MAX / 4 * 3 );
   opt = GNUNET_malloc (2 + (len * 4 / 3) + 8);
   for (size_t i = 0; i < len; ++i)
   {

-- 
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]