summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-08-09 15:14:19 +0200
committerChristian Grothoff <christian@grothoff.org>2021-08-09 15:14:19 +0200
commite2f5f39f0d1cecf6a8f528a758cdf9615c9ba6ce (patch)
treee3d1e536d155bee1c5ff93633e10d4350f91ee01 /src
parentf2de541f3a44913c69a1bd222587d0643ee33e49 (diff)
-fix assertion
Diffstat (limited to 'src')
-rw-r--r--src/util/strings.c2
1 files changed, 1 insertions, 1 deletions
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)
{