gnunet-svn
[Top][All Lists]
Advanced

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

[gnunet] 02/02: fix #8043


From: gnunet
Subject: [gnunet] 02/02: fix #8043
Date: Tue, 09 Jan 2024 19:16:55 +0100

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

grothoff pushed a commit to branch master
in repository gnunet.

commit 1a82df7c16968a237ce3d652db035dbfdfb07b50
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Tue Jan 9 19:16:12 2024 +0100

    fix #8043
---
 src/lib/json/json_generator.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/lib/json/json_generator.c b/src/lib/json/json_generator.c
index 6748f0447..43b72ba57 100644
--- a/src/lib/json/json_generator.c
+++ b/src/lib/json/json_generator.c
@@ -56,8 +56,7 @@ GNUNET_JSON_from_data64 (const void *data,
   json_t *json;
   size_t len;
 
-  if ((size * 8 + 5) / 6 + 1 >=
-      GNUNET_MAX_MALLOC_CHECKED)
+  if (size >= ( ( (GNUNET_MAX_MALLOC_CHECKED - 1) * 6) - 5) / 8)
   {
     GNUNET_break (0);
     return NULL;

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