summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-04-23 15:22:41 +0200
committerChristian Grothoff <christian@grothoff.org>2020-04-23 15:22:41 +0200
commit7666542ab6aab8ac191d5bda465e20e7948992ef (patch)
tree1ab29f0159826a035edb49750a8beba0c7d4b914
parent051ccdf0e7be353c5dce3fa0cda44b7e1df0bb3c (diff)
downloadexchange-7666542ab6aab8ac191d5bda465e20e7948992ef.tar.gz
exchange-7666542ab6aab8ac191d5bda465e20e7948992ef.tar.bz2
exchange-7666542ab6aab8ac191d5bda465e20e7948992ef.zip
fix #6219
-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 c64dfbc4..934bb058 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);