From 5a73f0797fe8b3c1350bc57405e789517478bc36 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Wed, 3 Aug 2016 16:06:17 +0100 Subject: add url escape test for complete garbage input --- test/urlescape.c | 1 + 1 file changed, 1 insertion(+) (limited to 'test') diff --git a/test/urlescape.c b/test/urlescape.c index e3d701aeb..e4e1fdb35 100644 --- a/test/urlescape.c +++ b/test/urlescape.c @@ -167,6 +167,7 @@ static const struct test_pairs url_unescape_test_vec[] = { { "%0G", 3, "%0G", 3 }, /* single character with bad hex value */ { "%20%0G%20", 9, " %0G ", 5 }, /* three src chars with bad hex value */ { "%20%00%20", 9, " ", 3 }, /* three src chars with null hex value */ + { "%@@%[[%__%||%//%::", 18, "%@@%[[%__%||%//%::", 18 }, /* four garbage encoded chars */ { &simple_string[0], SLEN(simple_string), &simple_string[0], SLEN(simple_string) }, /* normal string with no percent encoded characters */ { &most_escaped_upper[0], SLEN(most_escaped_upper), -- cgit v1.2.3