[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] 01/02: fix #8042
From: |
gnunet |
Subject: |
[gnunet] 01/02: fix #8042 |
Date: |
Tue, 09 Jan 2024 19:16:54 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository gnunet.
commit 4295f445ed4ab6e311ea79513e21e0e8d829c1fa
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Tue Jan 9 19:14:46 2024 +0100
fix #8042
---
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 4fda86e32..6748f0447 100644
--- a/src/lib/json/json_generator.c
+++ b/src/lib/json/json_generator.c
@@ -34,8 +34,7 @@ GNUNET_JSON_from_data (const void *data,
char *buf;
json_t *json;
- if ((size * 8 + 4) / 5 + 1 >=
- GNUNET_MAX_MALLOC_CHECKED)
+ if (size >= ( (GNUNET_MAX_MALLOC_CHECKED - 1) * 5) - 4 / 8)
{
GNUNET_break (0);
return NULL;
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.