diff options
author | Christian Grothoff <christian@grothoff.org> | 2024-01-09 19:38:25 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2024-01-09 19:38:25 +0100 |
commit | 9ef19ec60337441212d70965549416eecffd4576 (patch) | |
tree | 29f61fe3856c97e06586fd4e7d4ebaa4550466e8 | |
parent | ca54e4933d99caf51450643ab96e98f00b9b4c64 (diff) | |
download | gnunet-9ef19ec60337441212d70965549416eecffd4576.tar.gz gnunet-9ef19ec60337441212d70965549416eecffd4576.zip |
fix #8051
-rw-r--r-- | src/lib/util/strings.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/util/strings.c b/src/lib/util/strings.c index f3ef0483d..7751c7aa9 100644 --- a/src/lib/util/strings.c +++ b/src/lib/util/strings.c | |||
@@ -1621,7 +1621,7 @@ GNUNET_STRINGS_base64_encode (const void *in, | |||
1621 | char *opt; | 1621 | char *opt; |
1622 | 1622 | ||
1623 | ret = 0; | 1623 | ret = 0; |
1624 | GNUNET_assert (len < SIZE_MAX / 4 * 3); | 1624 | GNUNET_assert (len < SIZE_MAX / 4); |
1625 | opt = GNUNET_malloc (2 + (len * 4 / 3) + 8); | 1625 | opt = GNUNET_malloc (2 + (len * 4 / 3) + 8); |
1626 | for (size_t i = 0; i < len; ++i) | 1626 | for (size_t i = 0; i < len; ++i) |
1627 | { | 1627 | { |