aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/util/url.c3
1 files changed, 3 insertions, 0 deletions
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);