diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-04-23 15:22:41 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-04-23 15:22:41 +0200 |
commit | 7666542ab6aab8ac191d5bda465e20e7948992ef (patch) | |
tree | 1ab29f0159826a035edb49750a8beba0c7d4b914 | |
parent | 051ccdf0e7be353c5dce3fa0cda44b7e1df0bb3c (diff) |
fix #6219
-rw-r--r-- | src/util/url.c | 3 |
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); |