diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-04-03 18:45:46 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-04-03 18:45:46 +0200 |
commit | 6fd24eef238349d71ddd5bff7b87b3404e972ba6 (patch) | |
tree | cf144a3d95b37af5d25fe8d32814a0c57b86d8a8 /src/util | |
parent | bc01117ce0148ba819ce769ba9f61521e87f5ec9 (diff) | |
download | gnunet-6fd24eef238349d71ddd5bff7b87b3404e972ba6.tar.gz gnunet-6fd24eef238349d71ddd5bff7b87b3404e972ba6.zip |
fix #6155
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/strings.c | 1 |
1 files changed, 1 insertions, 0 deletions
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, | |||
104 | size_t off; | 104 | size_t off; |
105 | size_t plen = num_pids * 5 + 1; | 105 | size_t plen = num_pids * 5 + 1; |
106 | 106 | ||
107 | GNUNET_assert (num_pids < UINT32_MAX / 5); | ||
107 | off = 0; | 108 | off = 0; |
108 | buf = GNUNET_malloc (plen); | 109 | buf = GNUNET_malloc (plen); |
109 | for (unsigned int i = 0; i < num_pids; i++) | 110 | for (unsigned int i = 0; i < num_pids; i++) |