diff --git a/src/util/url.c b/src/util/url.c index c64dfbc4f..934bb058a 100644 --- a/src/util/url.c +++ b/src/util/url.c @@ -148,6 +148,9 @@ calculate_argument_length (va_list args) char *); if (NULL == value) continue; + GNUNET_assert ( (len <= len + urlencode_len (value)) && + (len <= len + urlencode_len (value) + strlen (key)) && + (len < len + urlencode_len (value) + strlen (key) + 2) ); len += urlencode_len (value) + strlen (key) + 2; } va_end (ap);