This commit is contained in:
Christian Grothoff 2020-04-23 15:22:41 +02:00
parent 051ccdf0e7
commit 7666542ab6
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -148,6 +148,9 @@ calculate_argument_length (va_list args)
char *); char *);
if (NULL == value) if (NULL == value)
continue; 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; len += urlencode_len (value) + strlen (key) + 2;
} }
va_end (ap); va_end (ap);