aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/test_urlparse.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-03-20 10:46:21 +0100
committerChristian Grothoff <christian@grothoff.org>2019-03-20 10:46:21 +0100
commit1b610e5b13b7b96e7b3f372c8da1ec9d840f896a (patch)
tree981bbabfcff95e4d5b83c0b50c9cec7611e54abb /src/testcurl/test_urlparse.c
parente2c268e3796557560fb2ffe3c2e9c18f74fc9471 (diff)
downloadlibmicrohttpd-1b610e5b13b7b96e7b3f372c8da1ec9d840f896a.tar.gz
libmicrohttpd-1b610e5b13b7b96e7b3f372c8da1ec9d840f896a.zip
allow binary zero in unescaped GET arguments (see mailinglist)
Diffstat (limited to 'src/testcurl/test_urlparse.c')
-rw-r--r--src/testcurl/test_urlparse.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/testcurl/test_urlparse.c b/src/testcurl/test_urlparse.c
index 8675f19c..1e6cc28c 100644
--- a/src/testcurl/test_urlparse.c
+++ b/src/testcurl/test_urlparse.c
@@ -67,13 +67,18 @@ copyBuffer (void *ptr, size_t size, size_t nmemb, void *ctx)
67 return size * nmemb; 67 return size * nmemb;
68} 68}
69 69
70
70static int 71static int
71test_values (void *cls, 72test_values (void *cls,
72 enum MHD_ValueKind kind, 73 enum MHD_ValueKind kind,
73 const char *key, 74 const char *key,
74 const char *value) 75 const char *value,
76 size_t value_size)
75{ 77{
76 (void)cls;(void)kind; /* Unused. Silent compiler warning. */ 78 (void) cls;
79 (void) kind;
80 (void) value_size;
81
77 if ( (0 == strcmp (key, "a")) && 82 if ( (0 == strcmp (key, "a")) &&
78 (0 == strcmp (value, "b")) ) 83 (0 == strcmp (value, "b")) )
79 matches += 1; 84 matches += 1;