From: Christian Grothoff Date: Fri, 3 Apr 2020 16:45:46 +0000 (+0200) Subject: fix #6155 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=6fd24eef238349d71ddd5bff7b87b3404e972ba6;p=oweals%2Fgnunet.git fix #6155 --- diff --git a/src/util/strings.c b/src/util/strings.c index e8d411ea5..be2ec33dc 100644 --- a/src/util/strings.c +++ b/src/util/strings.c @@ -104,6 +104,7 @@ GNUNET_STRINGS_pp2s (const struct GNUNET_PeerIdentity *pids, size_t off; size_t plen = num_pids * 5 + 1; + GNUNET_assert (num_pids < UINT32_MAX / 5); off = 0; buf = GNUNET_malloc (plen); for (unsigned int i = 0; i < num_pids; i++)