From: Bart Polot Date: Wed, 12 Dec 2012 02:17:01 +0000 (+0000) Subject: - die verbosely X-Git-Tag: initial-import-from-subversion-38251~10485 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=db5c55f93ef3f945cd3e896b293f7f342477b334;p=oweals%2Fgnunet.git - die verbosely --- diff --git a/src/mesh/mesh_api.c b/src/mesh/mesh_api.c index 0e49fd831..86d032824 100644 --- a/src/mesh/mesh_api.c +++ b/src/mesh/mesh_api.c @@ -1834,7 +1834,11 @@ GNUNET_MESH_announce_regex (struct GNUNET_MESH_Handle *h, len = strlen (regex); msgsize = sizeof(struct GNUNET_MESH_RegexAnnounce) + len; - GNUNET_assert (UINT16_MAX > msgsize); + if (UINT16_MAX > msgsize) + { + LOG (GNUNET_ERROR_TYPE_ERROR, "Regex size %u too big.\n", len); + GNUNET_abort(); + } { char buffer[msgsize];