projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc01117
)
fix #6155
author
Christian Grothoff
<christian@grothoff.org>
Fri, 3 Apr 2020 16:45:46 +0000
(18:45 +0200)
committer
Christian Grothoff
<christian@grothoff.org>
Fri, 3 Apr 2020 16:45:46 +0000
(18:45 +0200)
src/util/strings.c
patch
|
blob
|
history
diff --git
a/src/util/strings.c
b/src/util/strings.c
index e8d411ea5c5f2c10d3043abaeca16f77b3c4fb1a..be2ec33dc0746c1825cb443ee1e6bfa2f18ce00a 100644
(file)
--- 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++)